From 18754fe2ab5676fa711f32c3d46ba5ffe579ad1f Mon Sep 17 00:00:00 2001 From: Varun Arbatti Date: Fri, 31 Jan 2020 00:16:51 +0000 Subject: [PATCH] Merged in DCD-890-fix-variable-name-typo-in-write-tags (pull request #79) DCD-890 fix variable name typo in write tags * DCD-869: Change missing variable reference in write-tags * DCD-869: Add commit and timestamp prefix to tags generated from ansible to be consistent with tags in templates Approved-by: Steve Smith --- roles/aws_common/tasks/write-tags.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/aws_common/tasks/write-tags.yml b/roles/aws_common/tasks/write-tags.yml index 89ae6be..b896bfe 100644 --- a/roles/aws_common/tasks/write-tags.yml +++ b/roles/aws_common/tasks/write-tags.yml @@ -33,13 +33,13 @@ ResourceId: "{{ ec2_autoscaling_group }}" PropagateAtLaunch: true Key: "atl:deployment:commit-id" - Value: "{{ git_out.stdout }}" + Value: "COMMIT: {{ git_out.stdout }}" - ResourceType: "auto-scaling-group" ResourceId: "{{ ec2_autoscaling_group }}" PropagateAtLaunch: true Key: "atl:deployment:first-run-timestamp" - Value: "{{ ansible_date_time.iso8601 }}" + Value: "TIMESTAMP: {{ ansible_date_time.iso8601 }}" - ResourceType: "auto-scaling-group" ResourceId: "{{ ec2_autoscaling_group }}" @@ -63,8 +63,8 @@ region: "{{ ansible_ec2_placement_region }}" resource: "{{ ansible_ec2_instance_id }}" tags: - "atl:deployment:commit-id": "{{ git_out.stdout }}" - "atl:deployment:first-run-timestamp": "{{ ansible_date_time.iso8601 }}" + "atl:deployment:commit-id": "COMMIT: {{ git_out.stdout }}" + "atl:deployment:first-run-timestamp": "TIMESTAMP: {{ ansible_date_time.iso8601 }}" "atl:deployment:is-stack-restored": "{{ atl_restore_required_tag_value.0 }}" ignore_errors: true