ansible: Add missing default variables for common-node
[lttng-ci.git] / automation / ansible / playbooks / ci-instances.yml
index 30d5d42a21d8c0bbe9ea2f1c81c43a714ec1fd45..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: [
@@ -46,7 +46,7 @@
           '-s', "{{name_server}}",
         ]
     - name: Update Jenkins nodes
-      when: not skip_jenkins and inventory_hostname == 'localhost'
+      when: item.jenkins|default(false) and not skip_jenkins and inventory_hostname == 'localhost'
       with_items: "{{containers}}"
       vars:
         node_name: "{{item.jenkins.node_name|default(item.lxd.name|default(item.vm.name))}}"
This page took 0.02351 seconds and 4 git commands to generate.