diff options
-rw-r--r-- | roles/mkdocs/main.yml | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/roles/mkdocs/main.yml b/roles/mkdocs/main.yml index 78a437e..da0b8d0 100644 --- a/roles/mkdocs/main.yml +++ b/roles/mkdocs/main.yml @@ -49,7 +49,7 @@ shell: | . bin/activate pip install git+https://github.com/mkdocs/mkdocs@{{ mkdocs_version }} - pip install -Iv mkdocs-material=={{ mkdocs_material_version }} + pip install -Iv mkdocs-material=={{ mkdocs_material_version }} args: chdir: "{{ mkdocs_home }}" creates: bin/mkdocs @@ -71,7 +71,7 @@ src: index.md dest: "{{ mkdocs_home }}/docs" mode: '0644' - + become: true become_user: "{{ mkdocs_user }}" @@ -80,39 +80,26 @@ 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 - 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 application has been started supervisorctl: name: mkdocs - state: started + state: restarted - name: Waiting for application to become active wait_for: port: 8000 - - name: Restarting application due to config change - supervisorctl: - name: mkdocs - state: restarted - when: mkdocsConfig.changed - - name: Testing if webpage exists uri: url: http://0.0.0.0:8000 |