ansible: Do not update jenkins node during ci-instances when not set
authorKienan Stewart <kstewart@efficios.com>
Mon, 14 Aug 2023 15:58:34 +0000 (11:58 -0400)
committerKienan Stewart <kstewart@efficios.com>
Mon, 14 Aug 2023 15:58:34 +0000 (11:58 -0400)
Eg., we don't want to add git-mirror02 to Jenkins

Change-Id: I16d3fd4bf4a1340548366a83a9a4abb8e76fdb09

automation/ansible/playbooks/ci-instances.yml

index 30d5d42a21d8c0bbe9ea2f1c81c43a714ec1fd45..1259a7a724d71c282032badb465cb662f2f6e1a9 100644 (file)
@@ -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.023984 seconds and 4 git commands to generate.