diff options
-rw-r--r-- | roles/isso/main.yml | 20 |
1 files 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 |