]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: Set nodename=ansible_hostname on static builders
authorDavid Galloway <dgallowa@redhat.com>
Wed, 12 Aug 2020 18:02:18 +0000 (14:02 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 12 Aug 2020 18:02:18 +0000 (14:02 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
ansible/examples/slave.yml

index d2d5355a4225d8a6b0e3f475a3a3bc099d3122da..11d6374bb4ec1e007b339141cf235cc9811de47d 100644 (file)
       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