computer-playbook/roles/docker-discourse/handlers/main.yml

21 lines
745 B
YAML
Raw Normal View History

2023-12-08 00:34:48 +01:00
---
2024-02-06 21:58:13 +01:00
- 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
2024-02-06 23:14:56 +01:00
- name: "add central database temporary to {{docker_compose_project_name}}_default"
command:
cmd: "docker network connect discourse_default central-{{ database_type }}"
ignore_errors: true
when: enable_central_database | bool
listen: recreate discourse
2024-02-06 21:58:13 +01:00
- name: rebuild discourse
2023-12-08 00:34:48 +01:00
command:
2024-01-20 15:19:02 +01:00
cmd: "./launcher rebuild {{discourse_application_container}}"
2024-01-05 20:16:08 +01:00
chdir: "{{discourse_repository_directory}}"
2024-02-06 21:58:13 +01:00
listen: recreate discourse