Skip to content

Commit 55a63c7

Browse files
committed
use ecs_tag ansible updates
1 parent 7d709d1 commit 55a63c7

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

ansible/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ create-build-env-vars: guard-build_label guard-out_dir
4343
@poetry run ansible-playbook -i local create-build-env-vars.yml
4444

4545
deploy-ecs-proxies: guard-account guard-build_label guard-service_id guard-APIGEE_ENVIRONMENT guard-PROXY_VARS_FILE
46-
@echo "MAKE DEBUG: use_ecs_tag=${use_ecs_tag}"
46+
@echo "MAKE RAW: use_ecs_tag='${use_ecs_tag}'"
47+
@echo "MAKE LENGTH: $${#use_ecs_tag}"
48+
@echo "MAKE BYTES: $(printf '%s' "${use_ecs_tag}" | hexdump -C)"
4749
@poetry run ansible-playbook -i local deploy-ecs-proxies.yml \
48-
-e "use_ecs_tag=${use_ecs_tag}"
4950

5051
deploy-ecs-proxies-retag: guard-build_label guard-service_id guard-PROXY_VARS_FILE
5152
@poetry run ansible-playbook -i local deploy-ecs-proxies-retag.yml

ansible/roles/deploy-ecs-proxies/tasks/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,13 @@
7171
with_filetree: "{{ '../templates' }}"
7272
when: item.state == 'file'
7373

74-
- name: debug use_ecs_tag before terraform
74+
- name: ansible debug use_ecs_tag before terraform
7575
debug:
76-
msg: "ANSIBLE: use_ecs_tag={{ use_ecs_tag }} TF_VAR_use_ecs_tag={{ use_ecs_tag | ternary('true','false') }}"
76+
msg: >
77+
ANSIBLE: use_ecs_tag='{{ use_ecs_tag }}'
78+
TYPE={{ use_ecs_tag | type_debug }}
79+
LENGTH={{ use_ecs_tag | length }}
80+
TF_VAR_use_ecs_tag='{{ use_ecs_tag | ternary("true","false") }}'
7781
7882
- name: terraform plan
7983
shell: "TF_VAR_use_ecs_tag={{ use_ecs_tag | ternary('true','false') }} make -C {{ out_dir }}/terraform clean plan args='-no-color -lock-timeout=30m -out tfplan.out'" # noqa 305

0 commit comments

Comments
 (0)