1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Update setup-iam playbook to use aws_caller_info rather than deprecated (#57675)

aws_caller_facts
This commit is contained in:
Ed Costello 2019-06-12 01:23:56 +12:00 committed by Sloane Hertel
parent a8ebbecd53
commit 2013d4abc4

View file

@ -25,13 +25,13 @@
when: iam_group is not defined when: iam_group is not defined
- name: Get aws account ID - name: Get aws account ID
aws_caller_facts: aws_caller_info:
profile: "{{ profile|default(omit) }}" profile: "{{ profile|default(omit) }}"
register: aws_caller_facts register: aws_caller_info
- name: Set aws_account_fact - name: Set aws_account_fact
set_fact: set_fact:
aws_account: "{{ aws_caller_facts.account }}" aws_account: "{{ aws_caller_info.account }}"
- name: Ensure Managed IAM policies exist - name: Ensure Managed IAM policies exist