]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: set the hostname in slave_static.yml 487/head
authorAndrew Schoen <aschoen@redhat.com>
Wed, 21 Sep 2016 16:42:44 +0000 (11:42 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 21 Sep 2016 16:42:44 +0000 (11:42 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ansible/examples/slave_static.yml

index b462ca404aff340e610fa793d8227d6130babfe7..37aabf29e3dcb91c802fa444b5941f60ac5cb492 100644 (file)
         path: "/home/{{ jenkins_user }}/.gitconfig"
         owner: "{{ jenkins_user }}"
 
+    - name: Set Hostname with hostname command
+      sudo: yes
+      hostname:
+        name: "{{ ansible_hostname }}"
+
     - name: ensure that the current host is in /etc/hosts. Yes this is a thing.
       sudo: true
       replace: