Relocate some playbook task files to make it easier to navigate

development
Slavi Pantaleev 6 years ago
parent d0c2ef10e4
commit c7188e06f9

@ -1,81 +1,11 @@
--- ---
- include: tasks/setup_base.yml - include: tasks/setup/main.yml
tags:
- setup-all
- include: tasks/setup_main.yml
tags:
- setup-all
- include: tasks/setup_ssl.yml
tags:
- setup-all
- setup-ssl
- include: tasks/upgrade_postgres.yml - include: tasks/upgrade_postgres.yml
tags: tags:
- upgrade-postgres - 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 - include: tasks/start.yml
tags: tags:
- start - start
@ -92,7 +22,7 @@
tags: tags:
- import-media-store - import-media-store
- include: tasks/self_check.yml - include: tasks/self_check/main.yml
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
become: false become: false
tags: tags:

@ -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

@ -36,7 +36,7 @@
- "{{ matrix_ssl_config_dir_path }}" - "{{ matrix_ssl_config_dir_path }}"
- name: Obtain initial certificates - 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 }}" with_items: "{{ domains_to_obtain_certificate_for }}"
loop_control: loop_control:
loop_var: domain_name loop_var: domain_name

@ -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

@ -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

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

@ -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

@ -92,7 +92,7 @@
- debug: - 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." 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 - name: Ensure matrix-postgres autoruns and is restarted
service: name=matrix-postgres enabled=yes state=restarted daemon_reload=yes service: name=matrix-postgres enabled=yes state=restarted daemon_reload=yes

Loading…
Cancel
Save