From 1bcd873ac45277176808d68a9d39c09b30811292 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Tue, 14 Jan 2020 13:15:50 +1100 Subject: [PATCH] DCD-890: Fixes from testing. --- roles/aws_common/molecule/default/molecule.yml | 2 ++ roles/aws_common/tasks/write-tags.yml | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/aws_common/molecule/default/molecule.yml b/roles/aws_common/molecule/default/molecule.yml index 9db2aa4..9abbc31 100644 --- a/roles/aws_common/molecule/default/molecule.yml +++ b/roles/aws_common/molecule/default/molecule.yml @@ -16,6 +16,8 @@ provisioner: name: ansible lint: name: ansible-lint + options: + x: ["303", "602"] inventory: links: group_vars: ../../../../group_vars/ diff --git a/roles/aws_common/tasks/write-tags.yml b/roles/aws_common/tasks/write-tags.yml index 254e92b..ef9810f 100644 --- a/roles/aws_common/tasks/write-tags.yml +++ b/roles/aws_common/tasks/write-tags.yml @@ -6,6 +6,8 @@ resource: "{{ ansible_ec2_instance_id }}" state: list register: ec2_instance_tags + tags: + - notest - name: Retrieve autoscaling group set_fact: @@ -48,8 +50,8 @@ region: "{{ ansible_ec2_placement_region }}" resource: "{{ ansible_ec2_instance_id }}" tags: - "atl:deployment:commit": "{{ git_out.stdout }}" - "atl:deployment:first-run": "{{ ansible_date_time.iso8601 }}" + "atl:deployment:commit": "{{ git_out.stdout }}" + "atl:deployment:first-run": "{{ ansible_date_time.iso8601 }}" ignore_errors: true when: