1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Update guide_packet.rst (#49007)

Properly parses the returned data to get the device data and IP address. 


+label: docsite_pr
This commit is contained in:
johnstudarus 2018-11-22 08:53:24 -08:00 committed by John R Barker
parent 69191b10c1
commit 679b7dce63

View file

@ -178,7 +178,7 @@ The following playbook will create an SSH key, 3 Packet servers, and then wait u
port: 22 port: 22
state: started state: started
timeout: 500 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. 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.