[aws][docs] Replace uses of now-obsolete with_items with loop (#47164)

This commit is contained in:
Petr Ruzicka 2018-10-17 18:35:31 +02:00 committed by Ryan Brown
commit df57a3fc7a
14 changed files with 23 additions and 23 deletions

View file

@ -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