Commit f1c95436 by Michael Roytman

add restart Jenkins task to bottom and remove any notify blocks after removing handler

parent 524e4754
...@@ -78,8 +78,6 @@ ...@@ -78,8 +78,6 @@
dest: /etc/default/jenkins dest: /etc/default/jenkins
regexp: '^JAVA_ARGS=' regexp: '^JAVA_ARGS='
line: 'JAVA_ARGS="{{ jenkins_jvm_args }}"' line: 'JAVA_ARGS="{{ jenkins_jvm_args }}"'
notify:
- restart Jenkins
tags: tags:
- java - java
- jenkins - jenkins
...@@ -92,8 +90,6 @@ ...@@ -92,8 +90,6 @@
dest: /etc/default/jenkins dest: /etc/default/jenkins
regexp: '^JENKINS_HOME=' regexp: '^JENKINS_HOME='
line: 'JENKINS_HOME="{{ jenkins_home }}"' line: 'JENKINS_HOME="{{ jenkins_home }}"'
notify:
- restart Jenkins
tags: tags:
- java - java
- jenkins - jenkins
...@@ -129,8 +125,6 @@ ...@@ -129,8 +125,6 @@
state: link state: link
owner: "{{ jenkins_user }}" owner: "{{ jenkins_user }}"
group: "{{ jenkins_group }}" group: "{{ jenkins_group }}"
notify:
- restart Jenkins
tags: tags:
- install - install
- install:base - install:base
...@@ -182,8 +176,6 @@ ...@@ -182,8 +176,6 @@
mode: "0644" mode: "0644"
with_items: "{{ jenkins_plugin_downloads.results }}" with_items: "{{ jenkins_plugin_downloads.results }}"
when: item.changed when: item.changed
notify:
- restart Jenkins
tags: tags:
- install - install
- install:base - install:base
...@@ -219,8 +211,6 @@ ...@@ -219,8 +211,6 @@
{{ jenkins_home }}/plugins/{{ item.item.package }} {{ jenkins_home }}/plugins/{{ item.item.package }}
with_items: "{{ jenkins_custom_plugins_checkout.results }}" with_items: "{{ jenkins_custom_plugins_checkout.results }}"
when: item.changed when: item.changed
notify:
- restart Jenkins
tags: tags:
- install - install
- install:base - install:base
...@@ -263,8 +253,6 @@ ...@@ -263,8 +253,6 @@
src: "/etc/nginx/sites-available/jenkins" src: "/etc/nginx/sites-available/jenkins"
dest: "/etc/nginx/sites-enabled/jenkins" dest: "/etc/nginx/sites-enabled/jenkins"
state: link state: link
notify:
- start nginx
tags: tags:
- install - install
- install:vhosts - install:vhosts
...@@ -275,3 +263,11 @@ ...@@ -275,3 +263,11 @@
- datadog - datadog
- install - install
- install:base - install:base
- name: restart Jenkinks
service:
name: jenkins
state: restarted
tags:
- manage
- manage:start
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment