mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 04:31:13 +01:00
optimized discourse logic to solve bug
This commit is contained in:
parent
eea02572d9
commit
ba82ebce3c
@ -6,6 +6,14 @@
|
|||||||
register: container_action
|
register: container_action
|
||||||
failed_when: container_action.failed and 'No such container' not in container_action.msg
|
failed_when: container_action.failed and 'No such container' not in container_action.msg
|
||||||
listen: recreate discourse
|
listen: recreate discourse
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
- name: rebuild discourse
|
- name: rebuild discourse
|
||||||
command:
|
command:
|
||||||
cmd: "./launcher rebuild {{discourse_application_container}}"
|
cmd: "./launcher rebuild {{discourse_application_container}}"
|
||||||
|
@ -48,17 +48,12 @@
|
|||||||
dest: "{{discourse_repository_directory}}containers/discourse_application.yml"
|
dest: "{{discourse_repository_directory}}containers/discourse_application.yml"
|
||||||
notify: recreate discourse
|
notify: recreate discourse
|
||||||
|
|
||||||
- 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
|
|
||||||
|
|
||||||
- name: "destroy container discourse_application"
|
- name: "destroy container discourse_application"
|
||||||
command:
|
command:
|
||||||
cmd: "./launcher destroy discourse_application"
|
cmd: "./launcher destroy discourse_application"
|
||||||
chdir: "{{discourse_repository_directory}}"
|
chdir: "{{discourse_repository_directory}}"
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
notify: recreate discourse
|
||||||
when: mode_reset | bool
|
when: mode_reset | bool
|
||||||
|
|
||||||
- name: flush, to recreate discourse app
|
- name: flush, to recreate discourse app
|
||||||
|
Loading…
Reference in New Issue
Block a user