mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
[aws][docs] Replace uses of now-obsolete with_items with loop (#47164)
This commit is contained in:
@@ -381,14 +381,14 @@ EXAMPLES = '''
|
||||
add_host:
|
||||
hostname: "{{ item.public_ip }}"
|
||||
groupname: launched
|
||||
with_items: "{{ ec2.instances }}"
|
||||
loop: "{{ ec2.instances }}"
|
||||
|
||||
- name: Wait for SSH to come up
|
||||
delegate_to: "{{ item.public_dns_name }}"
|
||||
wait_for_connection:
|
||||
delay: 60
|
||||
timeout: 320
|
||||
with_items: "{{ ec2.instances }}"
|
||||
loop: "{{ ec2.instances }}"
|
||||
|
||||
- name: Configure instance(s)
|
||||
hosts: launched
|
||||
|
||||
Reference in New Issue
Block a user