Changed with_items -> loop (#62995)
This commit is contained in:
parent
4083d02989
commit
a5dc11cdd1
2 changed files with 17 additions and 18 deletions
|
@ -147,7 +147,7 @@ In case you only want allow traffic with AWS S3 service, you need to fetch the c
|
|||
- name: prepare list structure for ec2_group module
|
||||
set_fact:
|
||||
s3_ranges: "{{ s3_ranges | default([]) + [{'proto': 'all', 'cidr_ip': item, 'rule_desc': 'S3 Service IP range'}] }}"
|
||||
with_items: "{{ raw_s3_ranges }}"
|
||||
loop: "{{ raw_s3_ranges }}"
|
||||
|
||||
- name: set S3 IP ranges to egress rules
|
||||
ec2_group:
|
||||
|
@ -279,4 +279,3 @@ documentation for a full list with examples.
|
|||
Have a question? Stop by the google group!
|
||||
`irc.freenode.net <http://irc.freenode.net>`_
|
||||
#ansible IRC chat channel
|
||||
|
||||
|
|
|
@ -307,6 +307,6 @@ An example playbook is below:
|
|||
auth_kind: "service_account_file"
|
||||
service_account_file: "~/my_account.json"
|
||||
state: present
|
||||
with_items:
|
||||
loop:
|
||||
- instance-1
|
||||
- instance-2
|
||||
|
|
Loading…
Reference in a new issue