From: David Galloway Date: Wed, 12 Aug 2020 18:02:18 +0000 (-0400) Subject: ansible: Set nodename=ansible_hostname on static builders X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ea51a70aa687dc35af6c68df3f3667577f769468;p=ceph-build.git ansible: Set nodename=ansible_hostname on static builders Signed-off-by: David Galloway --- diff --git a/ansible/examples/slave.yml b/ansible/examples/slave.yml index d2d5355a4..11d6374bb 100644 --- a/ansible/examples/slave.yml +++ b/ansible/examples/slave.yml @@ -239,6 +239,12 @@ with_items: "{{ ansible_all_ipv4_addresses }}" when: "item.startswith('172.21.')" + ## Let's make sure nodename gets set using our Sepia hostnames if the builder's in Sepia + - set_fact: + nodename: "{{ ansible_hostname }}" + with_items: "{{ ansible_all_ipv4_addresses }}" + when: "item.startswith('172.21.')" + ## EPHEMERAL SLAVE TASKS # We would occasionally have issues with name resolution on the Ephemeral slaves # so we force them to use Google's DNS servers. This has to be done before