]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: always update slave.jar wip-update-slavejar 903/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 2 Nov 2017 18:26:09 +0000 (14:26 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 3 Nov 2017 13:35:25 +0000 (09:35 -0400)
Makes sure latest version of JNLP is being used.  Primarily useful when
re-running the playbook against a static slave.

Signed-off-by: David Galloway <dgallowa@redhat.com>
ansible/examples/slave_libvirt_static.yml
ansible/examples/slave_static.yml

index 70a0d7b92a2010d526873cc7e10e9caaa9be2f09..44cfeef7662d39a22b24a667c21adb425533d4fd 100644 (file)
       get_url:
         url: "{{ api_uri }}/jnlpJars/slave.jar"
         dest: "/home/{{ jenkins_user }}/slave.jar"
+        force: yes
 
     - name: install the systemd unit file for jenkins
       template:
index 828d52264c12528391ef56ab1ae09c869853dc52..46f7fd2489eb043c08ee5f40e2bc569c8623e39f 100644 (file)
       get_url:
         url: "{{ api_uri }}/jnlpJars/slave.jar"
         dest: "/home/{{ jenkins_user }}/slave.jar"
+        force: yes
       when: use_jnlp
 
     - name: install the systemd unit file for jenkins