From ecfc6da385fe3ac97495f7be642a0fce5a452e37 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Mon, 14 Aug 2023 11:58:34 -0400 Subject: [PATCH] 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 --- automation/ansible/playbooks/ci-instances.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))}}" -- 2.34.1