summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2020-04-01 15:28:43 -0400
committerThedro Neely <thedroneely@gmail.com>2020-04-01 15:28:43 -0400
commita5831df1762d74835b1737bd08a5960b8bf7ce2a (patch)
tree1d3833b251e1fe2b64ad57ebc04e2fbe54577d62
parent42f884f7caccb6c50b97d5f345d6554cbcce4177 (diff)
downloadplaybooks-a5831df1762d74835b1737bd08a5960b8bf7ce2a.tar.gz
playbooks-a5831df1762d74835b1737bd08a5960b8bf7ce2a.tar.bz2
playbooks-a5831df1762d74835b1737bd08a5960b8bf7ce2a.zip
roles/healthchecks/main: Restart supervisord
-rw-r--r--roles/healthchecks/main.yml10
1 files changed, 2 insertions, 8 deletions
diff --git a/roles/healthchecks/main.yml b/roles/healthchecks/main.yml
index 03e8a7d..ed41d76 100644
--- a/roles/healthchecks/main.yml
+++ b/roles/healthchecks/main.yml
@@ -109,20 +109,14 @@
src: supervisord.conf
dest: /etc/supervisord.conf
mode: '0644'
- register: supervisorConfig
- name: Ensuring supervisord has been started and enabled
service:
name: supervisord
- state: started
+ state: restarted
enabled: yes
+ changed_when: false
- name: Waiting for supervisor to become active
wait_for:
port: 9100
-
- - name: Restarting supervisord due to config change
- service:
- name: supervisord
- state: restarted
- when: supervisorConfig.changed