From: Kienan Stewart Date: Tue, 28 May 2024 19:25:35 +0000 (-0400) Subject: ansible: Skip managing DNS entries if meta is empty X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ce138cadbc050335b6b8190df4492b9e2344a534;p=lttng-ci.git ansible: Skip managing DNS entries if meta is empty Change-Id: I7e4a322ef25a479d2c4a6526b00135a9dde72c48 Signed-off-by: Kienan Stewart --- diff --git a/automation/ansible/playbooks/ci-instances.yml b/automation/ansible/playbooks/ci-instances.yml index 1259a7a..b4cfac5 100644 --- a/automation/ansible/playbooks/ci-instances.yml +++ b/automation/ansible/playbooks/ci-instances.yml @@ -36,7 +36,7 @@ object: "{{item.vm}}" with_items: "{{containers}}" - name: Update DNS entries - when: not skip_dns and inventory_hostname == 'localhost' + when: not skip_dns and inventory_hostname == 'localhost' and item.meta|default(false) with_items: "{{containers}}" ansible.builtin.command: argv: [