From 0a176f66f7950d750fc47b072f2bc0fcc1e50324 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Fri, 12 Dec 2025 11:22:11 -0500 Subject: [PATCH] builder: Fix and combine Sepia-specific tasks Forgot to add 10.20 to the nodename task Signed-off-by: David Galloway --- ansible/examples/builder.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/ansible/examples/builder.yml b/ansible/examples/builder.yml index d1b2dfaf..612b21e7 100644 --- a/ansible/examples/builder.yml +++ b/ansible/examples/builder.yml @@ -432,18 +432,13 @@ - libvirt|bool tags: always - ## Let's make sure we don't accidentally set up a permanent builder from Sepia as ephemeral - - set_fact: - permanent: true - with_items: "{{ ansible_all_ipv4_addresses }}" - when: item | regex_search('^(172\\.21\\.|8\\.43\\.|10\\.20\\.)') - tags: always - + ## Let's make sure we don't accidentally set up a permanent builder from Sepia as ephemeral and ## Let's make sure nodename gets set using our Sepia hostnames if the builder's in Sepia - set_fact: + permanent: true nodename: "{{ ansible_hostname }}" with_items: "{{ ansible_all_ipv4_addresses }}" - when: "item.startswith('172.21.') or item.startswith('8.43')" + when: item | regex_search('^(172\\.21\\.|8\\.43\\.|10\\.20\\.)') tags: always ## EPHEMERAL SLAVE TASKS -- 2.47.3