DCD-890: Add whether we are a restore to the persisted tags.

This commit is contained in:
Steve Smith
2020-01-17 15:39:12 +11:00
parent 0c502c296e
commit 079186225a

View File

@@ -36,6 +36,13 @@
Key: "atl:deployment:first-run" Key: "atl:deployment:first-run"
Value: "{{ ansible_date_time.iso8601 }}" Value: "{{ ansible_date_time.iso8601 }}"
- ResourceType: "auto-scaling-group"
ResourceId: "{{ ec2_autoscaling_group }}"
PropagateAtLaunch: true
Key: "atl:deployment:restored"
Value: "{{ atl_restore_required }}"
# Set the tags on the ASG and the local instance. We need to # Set the tags on the ASG and the local instance. We need to
# ignore errors as it's possible we don't have the permissions, # ignore errors as it's possible we don't have the permissions,
# and we can't check up-front. # and we can't check up-front.
@@ -53,6 +60,7 @@
tags: tags:
"atl:deployment:commit": "{{ git_out.stdout }}" "atl:deployment:commit": "{{ git_out.stdout }}"
"atl:deployment:first-run": "{{ ansible_date_time.iso8601 }}" "atl:deployment:first-run": "{{ ansible_date_time.iso8601 }}"
"atl:deployment:restored": "{{ atl_restore_required }}"
ignore_errors: true ignore_errors: true
when: when: