mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-05 07:49:10 -07:00
[aws][docs] Replace uses of now-obsolete with_items
with loop
(#47164)
This commit is contained in:
parent
2043aad582
commit
df57a3fc7a
14 changed files with 23 additions and 23 deletions
|
@ -124,7 +124,7 @@ EXAMPLES = '''
|
|||
- ec2_vol:
|
||||
instance: "{{ item.id }}"
|
||||
volume_size: 5
|
||||
with_items: "{{ ec2.instances }}"
|
||||
loop: "{{ ec2.instances }}"
|
||||
register: ec2_vol
|
||||
|
||||
# Example: Launch an instance and then add a volume if not already attached
|
||||
|
@ -145,7 +145,7 @@ EXAMPLES = '''
|
|||
instance: "{{ item.id }}"
|
||||
name: my_existing_volume_Name_tag
|
||||
device_name: /dev/xvdf
|
||||
with_items: "{{ ec2.instances }}"
|
||||
loop: "{{ ec2.instances }}"
|
||||
register: ec2_vol
|
||||
|
||||
# Remove a volume
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue