Skip to content

Commit a2978eb

Browse files
committed
file location update
1 parent cd2c705 commit a2978eb

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

ansible/roles/build-ecs-proxies/tasks/build-container.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,25 @@
4040
failed_when: false
4141
changed_when: false
4242

43+
- debug:
44+
msg:
45+
- "ROLE PATH = {{ role_path }}"
46+
- "BASE DIR = {{ base_dir }}"
47+
- "PWD = {{ lookup('env','PWD') }}"
48+
49+
- name: List contents of the role directory
50+
ansible.builtin.command: "ls -R {{ role_path }}"
51+
register: ls_role
52+
changed_when: false
53+
failed_when: false
54+
55+
- debug:
56+
var: ls_role.stdout_lines
57+
4358
- name: Apply lifecycle policy to ecr {{ service_id }}_{{ item }}
4459
ansible.builtin.command:
4560
cmd: >
4661
{{ aws_cmd }} ecr put-lifecycle-policy
4762
--repository-name {{ service_id }}_{{ item }}
4863
--lifecycle-policy-text file://{{ role_path }}/files/ecr_lifecycle.json
4964
when: lifecycle_check.rc != 0 and build_result.rc == 0
50-
51-
- debug:
52-
msg: "ROLE PATH = {{ role_path }}"
53-
- debug:
54-
msg: "BASE DIR = {{ base_dir }}"
55-

0 commit comments

Comments
 (0)