summaryrefslogtreecommitdiff
path: root/docs/docsite
diff options
context:
space:
mode:
authorJohn R Barker <john@johnrbarker.com>2018-11-26 19:44:57 +0000
committerAlicia Cozine <879121+acozine@users.noreply.github.com>2018-11-26 13:44:57 -0600
commiteab6034c7968950113728e6a5c53da567adc53f2 (patch)
treefe6111dfddabe47fcd2eb527d05054120243b3b3 /docs/docsite
parent02a8121deab6cd4770e69e9d08cde3503fc13f6b (diff)
downloadansible-eab6034c7968950113728e6a5c53da567adc53f2.tar.gz
Update guide_packet.rst (#49007) (#49029)
Properly parses the returned data to get the device data and IP address. (cherry picked from commit 679b7dce635830bc02ab38a8e5f92c345189802c)
Diffstat (limited to 'docs/docsite')
-rw-r--r--docs/docsite/rst/scenario_guides/guide_packet.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/docsite/rst/scenario_guides/guide_packet.rst b/docs/docsite/rst/scenario_guides/guide_packet.rst
index 0f419bf7fe..7b3c207633 100644
--- a/docs/docsite/rst/scenario_guides/guide_packet.rst
+++ b/docs/docsite/rst/scenario_guides/guide_packet.rst
@@ -178,7 +178,7 @@ The following playbook will create an SSH key, 3 Packet servers, and then wait u
port: 22
state: started
timeout: 500
- loop: "{{ newhosts.devices }}"
+ loop: "{{ newhosts.results[0].devices }}"
As with most Ansible modules, the default states of the Packet modules are idempotent, meaning the resources in your project will remain the same after re-runs of a playbook. Thus, we can keep the ``packet_sshkey`` module call in our playbook. If the public key is already in your Packet account, the call will have no effect.