Skip to content

Commit a6dba4d

Browse files
committed
terraform ecs update to use_ecs_tag
1 parent bf9ea0f commit a6dba4d

File tree

1 file changed

+11
-2
lines changed
  • ansible/roles/deploy-ecs-proxies/tasks

1 file changed

+11
-2
lines changed

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

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

74+
- name: debug use_ecs_tag before terraform
75+
debug:
76+
msg: "ANSIBLE: use_ecs_tag={{ use_ecs_tag }} TF_VAR_use_ecs_tag={{ use_ecs_tag | ternary('true','false') }}"
77+
7478
- name: terraform plan
75-
shell: "TF_VAR_use_ecs_tag={{ use_ecs_tag }} make -C {{ out_dir }}/terraform clean plan args='-no-color -lock-timeout=30m -out tfplan.out'" # noqa 305
79+
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
7680
register: tfplan
7781
failed_when: tfplan.rc not in (0, 2)
7882
when: not do_not_terraform
7983

84+
- name: print full terraform plan output (lines)
85+
debug:
86+
var: tfplan.stdout_lines
87+
when: tfplan is defined
88+
8089
- name: terraform apply
81-
shell: "TF_VAR_use_ecs_tag={{ use_ecs_tag }} make -C {{ out_dir }}/terraform apply-plan args='-no-color -lock-timeout=30m --auto-approve tfplan.out'" # noqa 305
90+
shell: "TF_VAR_use_ecs_tag={{ use_ecs_tag | ternary('true','false') }} make -C {{ out_dir }}/terraform apply-plan args='-no-color -lock-timeout=30m --auto-approve tfplan.out'" # noqa 305
8291
register: tfapply
8392
when: not do_not_terraform
8493

0 commit comments

Comments
 (0)