mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-24 05:31:04 +01:00
Optimized recreate discourse handler
This commit is contained in:
parent
cc0e67dc23
commit
4e30054a8f
@ -1,5 +1,13 @@
|
|||||||
---
|
---
|
||||||
- name: recreate discourse
|
- name: "stop and remove discourse container if it exist"
|
||||||
|
docker_container:
|
||||||
|
name: "{{discourse_application_container}}"
|
||||||
|
state: absent
|
||||||
|
register: container_action
|
||||||
|
failed_when: container_action.failed and 'No such container' not in container_action.msg
|
||||||
|
listen: recreate discourse
|
||||||
|
- name: rebuild discourse
|
||||||
command:
|
command:
|
||||||
cmd: "./launcher rebuild {{discourse_application_container}}"
|
cmd: "./launcher rebuild {{discourse_application_container}}"
|
||||||
chdir: "{{discourse_repository_directory}}"
|
chdir: "{{discourse_repository_directory}}"
|
||||||
|
listen: recreate discourse
|
Loading…
Reference in New Issue
Block a user