Relocate some playbook task files to make it easier to navigate

This commit is contained in:
Slavi Pantaleev 2018-10-21 13:14:47 +03:00
parent d0c2ef10e4
commit c7188e06f9
27 changed files with 91 additions and 88 deletions

View File

@ -1,81 +1,11 @@
---
- include: tasks/setup_base.yml
tags:
- setup-all
- include: tasks/setup_main.yml
tags:
- setup-all
- include: tasks/setup_ssl.yml
tags:
- setup-all
- setup-ssl
- include: tasks/setup/main.yml
- include: tasks/upgrade_postgres.yml
tags:
- upgrade-postgres
- include: tasks/setup_postgres.yml
tags:
- setup-all
- setup-postgres
- include: tasks/setup_goofys.yml
tags:
- setup-all
- setup-goofys
- include: tasks/setup_coturn.yml
tags:
- setup-all
- setup-coturn
- include: tasks/setup_mailer.yml
tags:
- setup-all
- setup-mailer
- include: tasks/setup_mxisd.yml
tags:
- setup-all
- setup-mxisd
- include: tasks/setup_corporal_overrides.yml
tags:
- always
- include: tasks/setup_corporal.yml
tags:
- setup-all
- setup-corporal
- include: tasks/setup_synapse.yml
tags:
- setup-all
- setup-synapse
- setup-coturn
- include: tasks/setup_riot_web.yml
tags:
- setup-all
- setup-riot-web
- include: tasks/setup_well_known.yml
tags:
- setup-all
- setup-mxisd
- setup-synapse
- setup-nginx-proxy
- setup-well-known
- include: tasks/setup_nginx_proxy.yml
tags:
- setup-all
- setup-nginx-proxy
- setup-well-known
- include: tasks/start.yml
tags:
- start
@ -92,7 +22,7 @@
tags:
- import-media-store
- include: tasks/self_check.yml
- include: tasks/self_check/main.yml
delegate_to: 127.0.0.1
become: false
tags:

View File

@ -0,0 +1,73 @@
---
- include: tasks/setup/setup_base.yml
tags:
- setup-all
- include: tasks/setup/setup_main.yml
tags:
- setup-all
- include: tasks/setup/setup_ssl.yml
tags:
- setup-all
- setup-ssl
- include: tasks/setup/setup_postgres.yml
tags:
- setup-all
- setup-postgres
- include: tasks/setup/setup_goofys.yml
tags:
- setup-all
- setup-goofys
- include: tasks/setup/setup_coturn.yml
tags:
- setup-all
- setup-coturn
- include: tasks/setup/setup_mailer.yml
tags:
- setup-all
- setup-mailer
- include: tasks/setup/setup_mxisd.yml
tags:
- setup-all
- setup-mxisd
- include: tasks/setup/setup_corporal_overrides.yml
tags:
- always
- include: tasks/setup/setup_corporal.yml
tags:
- setup-all
- setup-corporal
- include: tasks/setup/setup_synapse.yml
tags:
- setup-all
- setup-synapse
- setup-coturn
- include: tasks/setup/setup_riot_web.yml
tags:
- setup-all
- setup-riot-web
- include: tasks/setup/setup_well_known.yml
tags:
- setup-all
- setup-mxisd
- setup-synapse
- setup-nginx-proxy
- setup-well-known
- include: tasks/setup/setup_nginx_proxy.yml
tags:
- setup-all
- setup-nginx-proxy
- setup-well-known

View File

@ -36,7 +36,7 @@
- "{{ matrix_ssl_config_dir_path }}"
- name: Obtain initial certificates
include_tasks: "setup_ssl_for_domain.yml"
include_tasks: "tasks/setup/setup_ssl_for_domain.yml"
with_items: "{{ domains_to_obtain_certificate_for }}"
loop_control:
loop_var: domain_name

View File

@ -0,0 +1,7 @@
---
- include: tasks/setup/setup_synapse_pre.yml
- include: tasks/setup/setup_synapse_ext.yml
- include: tasks/setup/setup_synapse_main.yml

View File

@ -0,0 +1,7 @@
---
- include: tasks/setup/setup_synapse_ext_rest_auth.yml
- include: tasks/setup/setup_synapse_ext_shared_secret_auth.yml
- include: tasks/setup/setup_synapse_ext_mautrix_telegram.yml

View File

@ -1,7 +0,0 @@
---
- include: tasks/setup_synapse_pre.yml
- include: tasks/setup_synapse_ext.yml
- include: tasks/setup_synapse_main.yml

View File

@ -1,7 +0,0 @@
---
- include: tasks/setup_synapse_ext_rest_auth.yml
- include: tasks/setup_synapse_ext_shared_secret_auth.yml
- include: tasks/setup_synapse_ext_mautrix_telegram.yml

View File

@ -92,7 +92,7 @@
- debug:
msg: "NOTE: Your Postgres data directory has been moved from `{{ matrix_postgres_data_path }}` to `{{ postgres_auto_upgrade_backup_data_path }}`. In the event of failure, you can move it back and run the playbook with --tags=setup-postgres to restore operation."
- include: tasks/setup_postgres.yml
- include: tasks/setup/setup_postgres.yml
- name: Ensure matrix-postgres autoruns and is restarted
service: name=matrix-postgres enabled=yes state=restarted daemon_reload=yes