From: Andrew Schoen Date: Wed, 21 Sep 2016 16:42:44 +0000 (-0500) Subject: ansible: set the hostname in slave_static.yml X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F487%2Fhead;p=ceph-build.git ansible: set the hostname in slave_static.yml Signed-off-by: Andrew Schoen --- diff --git a/ansible/examples/slave_static.yml b/ansible/examples/slave_static.yml index b462ca40..37aabf29 100644 --- a/ansible/examples/slave_static.yml +++ b/ansible/examples/slave_static.yml @@ -213,6 +213,11 @@ 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: