mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-07 08:54:01 -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
|
@ -94,7 +94,7 @@ tasks:
|
|||
state: present
|
||||
password: "{{ temp_pass }}"
|
||||
access_key_state: create
|
||||
with_items:
|
||||
loop:
|
||||
- jcleese
|
||||
- mpython
|
||||
|
||||
|
@ -106,7 +106,7 @@ task:
|
|||
iam_type: group
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
with_items:
|
||||
loop:
|
||||
- Mario
|
||||
- Luigi
|
||||
register: new_groups
|
||||
|
@ -117,7 +117,7 @@ task:
|
|||
name: jdavila
|
||||
state: update
|
||||
groups: "{{ item.created_group.group_name }}"
|
||||
with_items: "{{ new_groups.results }}"
|
||||
loop: "{{ new_groups.results }}"
|
||||
|
||||
# Example of role with custom trust policy for Lambda service
|
||||
- name: Create IAM role with custom trust relationship
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue