ansible: Skip managing DNS entries if meta is empty
authorKienan Stewart <kstewart@efficios.com>
Tue, 28 May 2024 19:25:35 +0000 (15:25 -0400)
committerKienan Stewart <kstewart@efficios.com>
Tue, 28 May 2024 19:25:35 +0000 (15:25 -0400)
Change-Id: I7e4a322ef25a479d2c4a6526b00135a9dde72c48
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/playbooks/ci-instances.yml

index 1259a7a724d71c282032badb465cb662f2f6e1a9..b4cfac57f8ff87553fe698239afbbc0947303a17 100644 (file)
@@ -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: [
This page took 0.031992 seconds and 4 git commands to generate.