From 30e64aad9bf0efb3cc6c9016b1488a8cf4b61426 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Wed, 25 Mar 2020 19:05:33 -0400 Subject: roles/isso/main: Default restart services --- roles/isso/main.yml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/roles/isso/main.yml b/roles/isso/main.yml index 74a2636..a2b0e1c 100644 --- a/roles/isso/main.yml +++ b/roles/isso/main.yml @@ -85,7 +85,6 @@ src: isso.conf dest: "{{ isso_home }}/isso.conf" mode: '0644' - register: issoConfig become: true become_user: "{{ isso_user }}" @@ -95,39 +94,28 @@ 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 - - name: Ensuring isso has been started supervisorctl: name: isso - state: started + state: restarted + changed_when: false - name: Waiting for application to become active wait_for: port: 8100 - - name: Restarting application due to config change - supervisorctl: - name: isso - state: restarted - when: issoConfig.changed - - name: Testing if isso admin page exists uri: url: http://0.0.0.0:8100/admin -- cgit v1.2.3