Renamed modes

This commit is contained in:
2024-01-08 19:38:36 +01:00
parent f180c14e06
commit c7d6e8c68c
6 changed files with 14 additions and 11 deletions

View File

@@ -45,7 +45,7 @@
file:
path: "{{ backup_docker_to_local_folder }}databases.csv"
state: absent
when: reset_files | bool and run_once_backup_docker_to_local is not defined
when: mode_reset | bool and run_once_backup_docker_to_local is not defined
- name: seed database values
command:

View File

@@ -16,19 +16,19 @@
command:
cmd: "docker stop discourse_application"
ignore_errors: true
when: reset_files | bool
when: mode_reset | bool
- name: "rm container discourse_application"
command:
cmd: "docker rm discourse_application"
ignore_errors: true
when: reset_files | bool
when: mode_reset | bool
- name: "cleanup central database from {{docker_compose_project_name}}_default network"
command:
cmd: "docker network disconnect discourse_default central-{{ database_type }}"
ignore_errors: true
when: reset_files | bool
when: mode_reset | bool
- name: add docker-compose.yml
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml

View File

@@ -65,11 +65,10 @@
become: false
delegate_to: localhost
- name: show variable information
debug:
msg: "hosts_path: {{hosts_path}}\nmatrix_inventory_tmp_dir:{{ matrix_inventory_tmp_dir }}"
when: verbose | bool
when: mode_verbose | bool
- name: install requirements
local_action: command just roles