mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[cloud] Fix setup_iam to use policy_name, not PolicyName (#26880)
Update setup_iam.yml to work with latest iam_managed_policies module, which correctly snakifies the results
This commit is contained in:
parent
6d1bd33aa5
commit
f3bc8b84b6
1 changed files with 4 additions and 1 deletions
|
@ -43,9 +43,12 @@
|
|||
with_fileglob: "testing_policies/*"
|
||||
register: iam_managed_policies
|
||||
|
||||
- debug:
|
||||
msg: "{{ iam_managed_policies | json_query('results[].policy.policy_name') }}"
|
||||
|
||||
- name: Ensure IAM group exists and attach managed policies
|
||||
iam_group:
|
||||
name: "{{ iam_group }}"
|
||||
state: present
|
||||
managed_policy: "{{ iam_managed_policies | json_query('results[].policy.PolicyName') }}"
|
||||
managed_policy: "{{ iam_managed_policies | json_query('results[].policy.policy_name') }}"
|
||||
profile: "{{ profile|default(omit) }}"
|
||||
|
|
Loading…
Reference in a new issue