Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit 9b93d1b

Browse files
author
Matej Stajduhar
committed
Adding-profile-to-task
1 parent 0a98661 commit 9b93d1b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

roles/aws/aws_iam_role/tasks/main.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
- name: Create an inline IAM Managed Policy if defined.
22
amazon.aws.iam_managed_policy:
3+
profile: "{{ aws_iam_role.aws_profile }}"
34
policy_name: "inline_{{ aws_iam_role.inline_policies.name }}_policy"
45
policy:
56
Version: "2012-10-17"
@@ -47,11 +48,6 @@
4748
wait: true
4849
register: _aws_iam_role_result
4950

50-
- name: Wait for 6 seconds for IAM to be ready.
51-
ansible.builtin.wait_for:
52-
timeout: 6
53-
when: ansible_loop.last is defined and ansible_loop.last
54-
5551
- name: Register aws_iam_role results.
5652
ansible.builtin.set_fact:
5753
aws_iam_role: "{{ aws_iam_role | combine({'_result': {aws_iam_role.name: _aws_iam_role_result}}, recursive=True) }}"

0 commit comments

Comments
 (0)