From b479a25a1f10f70bd7ae15b734ae6a74d6b6a299 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Wed, 19 Jul 2023 13:31:31 -0700 Subject: [PATCH] ansible: use 'inventory_hostname' to look up jenkins labels inventory_hostname is as it appears in the inventory file, and keeping that consistent is easier than dealing with short vs long names Note: this requires a change to ceph-sepia-secrets to standardize on the inventory form of the name Signed-off-by: Dan Mick --- ansible/examples/builder.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/examples/builder.yml b/ansible/examples/builder.yml index 251d0375..4aad0085 100644 --- a/ansible/examples/builder.yml +++ b/ansible/examples/builder.yml @@ -17,7 +17,7 @@ - api_uri: 'https://jenkins.ceph.com' - jenkins_credentials_uuid: 'jenkins-build' - nodename: '{{ nodename }}' - - labels: "{{ jenkins_labels[ansible_hostname] }}" + - labels: "{{ jenkins_labels[inventory_hostname] }}" - grant_sudo: true - osc_user: 'username' - osc_pass: 'password' -- 2.39.5