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:
parent
a8ebbecd53
commit
2013d4abc4
1 changed files with 3 additions and 3 deletions
|
@ -25,13 +25,13 @@
|
|||
when: iam_group is not defined
|
||||
|
||||
- name: Get aws account ID
|
||||
aws_caller_facts:
|
||||
aws_caller_info:
|
||||
profile: "{{ profile|default(omit) }}"
|
||||
register: aws_caller_facts
|
||||
register: aws_caller_info
|
||||
|
||||
- name: Set aws_account_fact
|
||||
set_fact:
|
||||
aws_account: "{{ aws_caller_facts.account }}"
|
||||
aws_account: "{{ aws_caller_info.account }}"
|
||||
|
||||
|
||||
- name: Ensure Managed IAM policies exist
|
||||
|
|
Loading…
Reference in a new issue