From: Kienan Stewart Date: Mon, 14 Aug 2023 15:58:34 +0000 (-0400) Subject: ansible: Do not update jenkins node during ci-instances when not set X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ecfc6da385fe3ac97495f7be642a0fce5a452e37;p=lttng-ci.git ansible: Do not update jenkins node during ci-instances when not set Eg., we don't want to add git-mirror02 to Jenkins Change-Id: I16d3fd4bf4a1340548366a83a9a4abb8e76fdb09 --- diff --git a/automation/ansible/playbooks/ci-instances.yml b/automation/ansible/playbooks/ci-instances.yml index 30d5d42..1259a7a 100644 --- a/automation/ansible/playbooks/ci-instances.yml +++ b/automation/ansible/playbooks/ci-instances.yml @@ -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))}}"