]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: jenkins-cli no longer deemed secure
authorDavid Galloway <dgallowa@redhat.com>
Fri, 4 Aug 2017 20:04:38 +0000 (16:04 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 22 Aug 2017 14:42:45 +0000 (10:42 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
ansible/roles/ansible-jenkins/handlers/main.yml

index 0e1d688a9ddb894fa95d96afdc4718c7086594aa..3b1f69e93073dd81eb623b0131fc72132a99c99f 100644 (file)
@@ -1,6 +1,7 @@
-# Safe-restart Jenkins
 - name: restart jenkins
-  command: java -jar {{ jenkins.cli_dest }} -s http://localhost:{{ jenkins_port }} safe-restart
+  service:
+    name: jenkins
+    state: restarted
   when: okay_with_restart == "y"
 
 - name: restart nginx