mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00: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:
@@ -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) }}"
|
||||
|
||||
Reference in New Issue
Block a user