summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorWill Thames <will@thames.id.au>2017-07-28 21:50:07 +1000
committerRyan Brown <sb@ryansb.com>2017-07-28 07:50:07 -0400
commitf3bc8b84b69daf549ed5267724098522c5472c15 (patch)
tree7a83f9c626d3354d3a14916caab6be1f3f70890c /hacking
parent6d1bd33aa5f2e82ada8397b6bd9c7e889eed9cf1 (diff)
downloadansible-f3bc8b84b69daf549ed5267724098522c5472c15.tar.gz
[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
Diffstat (limited to 'hacking')
-rw-r--r--hacking/aws_config/setup-iam.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/hacking/aws_config/setup-iam.yml b/hacking/aws_config/setup-iam.yml
index 4b53de945a..54c5950e85 100644
--- a/hacking/aws_config/setup-iam.yml
+++ b/hacking/aws_config/setup-iam.yml
@@ -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) }}"