2021-02-20 10:19:17 +01:00
|
|
|
|
|
|
|
# Load initial hosting and organisation variables from AWX volume
|
2021-03-20 10:21:02 +01:00
|
|
|
- include_tasks:
|
|
|
|
file: "load_hosting_and_org_variables.yml"
|
|
|
|
apply:
|
|
|
|
tags: always
|
2021-02-20 10:19:17 +01:00
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- always
|
|
|
|
|
2021-04-22 05:45:59 +02:00
|
|
|
# Renames the variables if needed
|
|
|
|
- include_tasks:
|
|
|
|
file: "rename_variables.yml"
|
|
|
|
apply:
|
|
|
|
tags: always
|
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- always
|
|
|
|
|
2021-03-14 07:35:38 +01:00
|
|
|
# Perform a backup of the server
|
2021-03-20 10:21:02 +01:00
|
|
|
- include_tasks:
|
|
|
|
file: "backup_server.yml"
|
|
|
|
apply:
|
|
|
|
tags: backup-server
|
2021-03-14 07:35:38 +01:00
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- backup-server
|
2021-06-14 16:36:49 +02:00
|
|
|
|
|
|
|
# Perform a export of the server
|
|
|
|
- include_tasks:
|
|
|
|
file: "export_server.yml"
|
|
|
|
apply:
|
|
|
|
tags: export-server
|
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- export-server
|
2021-03-14 07:35:38 +01:00
|
|
|
|
2021-02-20 10:19:17 +01:00
|
|
|
# Create a user account if called
|
2021-03-20 10:21:02 +01:00
|
|
|
- include_tasks:
|
|
|
|
file: "create_user.yml"
|
|
|
|
apply:
|
|
|
|
tags: create-user
|
2021-02-20 10:19:17 +01:00
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- create-user
|
2021-03-16 14:37:19 +01:00
|
|
|
|
2021-04-15 11:07:03 +02:00
|
|
|
# Purge local/remote media if called
|
|
|
|
- include_tasks:
|
|
|
|
file: "purge_media_main.yml"
|
|
|
|
apply:
|
|
|
|
tags: purge-media
|
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- purge-media
|
|
|
|
|
2021-05-10 12:50:10 +02:00
|
|
|
# Purge Synapse database if called
|
|
|
|
- include_tasks:
|
|
|
|
file: "purge_database_main.yml"
|
|
|
|
apply:
|
|
|
|
tags: purge-database
|
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- purge-database
|
|
|
|
|
2021-04-04 05:41:06 +02:00
|
|
|
# Import configs, media repo from /chroot/backup import
|
|
|
|
- include_tasks:
|
|
|
|
file: "import_awx.yml"
|
|
|
|
apply:
|
|
|
|
tags: import-awx
|
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- import-awx
|
|
|
|
|
2021-02-20 10:19:17 +01:00
|
|
|
# Perform extra self-check functions
|
2021-03-20 10:21:02 +01:00
|
|
|
- include_tasks:
|
|
|
|
file: "self_check.yml"
|
|
|
|
apply:
|
|
|
|
tags: self-check
|
2021-02-20 10:19:17 +01:00
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- self-check
|
|
|
|
|
2021-04-04 05:52:26 +02:00
|
|
|
# Create cached matrix_vars.yml file
|
2021-03-20 10:21:02 +01:00
|
|
|
- include_tasks:
|
2021-04-04 05:41:06 +02:00
|
|
|
file: "cache_matrix_variables.yml"
|
2021-03-20 10:21:02 +01:00
|
|
|
apply:
|
2021-04-04 05:41:06 +02:00
|
|
|
tags: always
|
2021-02-20 10:19:17 +01:00
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
2021-04-04 05:41:06 +02:00
|
|
|
- always
|
2021-02-20 10:19:17 +01:00
|
|
|
|
2021-02-28 15:21:40 +01:00
|
|
|
# Configure SFTP so user can upload a static website or access the servers export
|
2021-03-20 10:21:02 +01:00
|
|
|
- include_tasks:
|
|
|
|
file: "customise_website_access_export.yml"
|
|
|
|
apply:
|
|
|
|
tags: setup-nginx-proxy
|
2021-02-20 10:19:17 +01:00
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- setup-nginx-proxy
|
|
|
|
|
|
|
|
# Additional playbook to set the variable file during Element configuration
|
2021-03-20 10:21:02 +01:00
|
|
|
- include_tasks:
|
|
|
|
file: "set_variables_element.yml"
|
|
|
|
apply:
|
|
|
|
tags: setup-client-element
|
2021-02-20 10:19:17 +01:00
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- setup-client-element
|
|
|
|
|
2021-06-04 07:10:45 +02:00
|
|
|
# Additional playbook to set the variable file during Mailer configuration
|
|
|
|
- include_tasks:
|
|
|
|
file: "set_variables_mailer.yml"
|
|
|
|
apply:
|
|
|
|
tags: setup-mailer
|
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- setup-mailer
|
|
|
|
|
2021-06-01 10:00:13 +02:00
|
|
|
# Additional playbook to set the variable file during Element configuration
|
|
|
|
- include_tasks:
|
|
|
|
file: "set_variables_element_subdomain.yml"
|
|
|
|
apply:
|
|
|
|
tags: setup-client-element-subdomain
|
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- setup-client-element-subdomain
|
|
|
|
|
2021-02-20 10:19:17 +01:00
|
|
|
# Additional playbook to set the variable file during Synapse configuration
|
2021-03-20 10:21:02 +01:00
|
|
|
- include_tasks:
|
|
|
|
file: "set_variables_synapse.yml"
|
|
|
|
apply:
|
|
|
|
tags: setup-synapse
|
2021-02-20 10:19:17 +01:00
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- setup-synapse
|
|
|
|
|
|
|
|
# Additional playbook to set the variable file during Jitsi configuration
|
2021-03-20 10:21:02 +01:00
|
|
|
- include_tasks:
|
|
|
|
file: "set_variables_jitsi.yml"
|
|
|
|
apply:
|
|
|
|
tags: setup-jitsi
|
2021-02-20 10:19:17 +01:00
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- setup-jitsi
|
|
|
|
|
|
|
|
# Additional playbook to set the variable file during Ma1sd configuration
|
2021-03-20 10:21:02 +01:00
|
|
|
- include_tasks:
|
|
|
|
file: "set_variables_ma1sd.yml"
|
|
|
|
apply:
|
|
|
|
tags: setup-ma1sd
|
2021-02-20 10:19:17 +01:00
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- setup-ma1sd
|
2021-03-16 14:37:19 +01:00
|
|
|
|
2021-02-20 10:19:17 +01:00
|
|
|
# Additional playbook to set the variable file during Corporal configuration
|
2021-03-20 10:21:02 +01:00
|
|
|
- include_tasks:
|
|
|
|
file: "set_variables_corporal.yml"
|
|
|
|
apply:
|
|
|
|
tags: setup-corporal
|
2021-02-20 10:19:17 +01:00
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
2021-03-16 14:37:19 +01:00
|
|
|
- setup-corporal
|
2021-02-20 10:19:17 +01:00
|
|
|
|
2021-04-04 05:41:06 +02:00
|
|
|
# Additional playbook to set the variable file during Dimension configuration
|
|
|
|
- include_tasks:
|
|
|
|
file: "set_variables_dimension.yml"
|
|
|
|
apply:
|
|
|
|
tags: setup-dimension
|
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- setup-dimension
|
|
|
|
|
2021-02-20 10:19:17 +01:00
|
|
|
# Additional playbook to set the variable file during Synapse Admin configuration
|
2021-03-20 10:21:02 +01:00
|
|
|
- include_tasks:
|
|
|
|
file: "set_variables_synapse_admin.yml"
|
|
|
|
apply:
|
|
|
|
tags: setup-synapse-admin
|
2021-02-20 10:19:17 +01:00
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
2021-03-16 14:37:19 +01:00
|
|
|
- setup-synapse-admin
|
2021-02-20 10:19:17 +01:00
|
|
|
|
2021-04-04 05:41:06 +02:00
|
|
|
# Load newly formed matrix variables from AWX volume
|
2021-03-20 10:21:02 +01:00
|
|
|
- include_tasks:
|
|
|
|
file: "load_matrix_variables.yml"
|
|
|
|
apply:
|
|
|
|
tags: always
|
2021-02-20 10:19:17 +01:00
|
|
|
when: run_setup|bool and matrix_awx_enabled|bool
|
|
|
|
tags:
|
|
|
|
- always
|