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

Commit 92721f9

Browse files
author
Matej Stajduhar
committed
Adding-debug
1 parent 1c29bcd commit 92721f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

roles/aws/aws_iam_role/tasks/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
ansible.builtin.set_fact:
2626
allowed_strings: ["ec2", "ecs", "backup", "event"]
2727

28+
- name: Debug vars-
29+
ansible.builtin.debug:
30+
msg: aws_iam_role.policy_document
31+
2832
- name: Create assume role policy document if predefined string is passed.
2933
ansible.builtin.set_fact:
3034
_assume_role_policy: "{{ lookup('file', aws_iam_role.policy_document + '_document_policy.json') }}"
@@ -46,7 +50,7 @@
4650
_assume_role_policy: "/tmp/policy_document.json"
4751
when: (aws_iam_role.policy_document | basename) is match('.*\.j2$')
4852

49-
- name: Create an IAM role.
53+
- name: Create an IAM role {{ aws_iam_role.name }}.
5054
amazon.aws.iam_role:
5155
profile: "{{ aws_iam_role.aws_profile }}"
5256
name: "{{ aws_iam_role.name }}"

0 commit comments

Comments
 (0)