matrix-docker-ansible-deploy/roles/matrix-awx/tasks/main.yml

79 lines
2.6 KiB
YAML
Raw Normal View History

2021-02-20 09:19:17 +00:00
# Load initial hosting and organisation variables from AWX volume
2021-03-16 13:37:19 +00:00
- include_tasks: "{{ role_path }}/tasks/load_hosting_and_org_variables.yml"
2021-02-20 09:19:17 +00:00
when: run_setup|bool and matrix_awx_enabled|bool
tags:
- always
2021-03-14 06:35:38 +00:00
# Perform a backup of the server
2021-03-16 13:37:19 +00:00
- include_tasks: "{{ role_path }}/tasks/backup_server.yml"
2021-03-14 06:35:38 +00:00
when: run_setup|bool and matrix_awx_enabled|bool
tags:
- backup-server
2021-02-20 09:19:17 +00:00
# Create a user account if called
2021-03-16 13:37:19 +00:00
- include_tasks: "{{ role_path }}/tasks/create_user.yml"
2021-02-20 09:19:17 +00:00
when: run_setup|bool and matrix_awx_enabled|bool
tags:
- create-user
2021-03-16 13:37:19 +00:00
2021-02-20 09:19:17 +00:00
# Perform extra self-check functions
2021-03-16 13:37:19 +00:00
- include_tasks: "{{ role_path }}/tasks/self_check.yml"
2021-02-20 09:19:17 +00:00
when: run_setup|bool and matrix_awx_enabled|bool
tags:
- self-check
# Import configs, media repo from /chroot/backup import
2021-03-16 13:37:19 +00:00
- include_tasks: "{{ role_path }}/tasks/import_awx.yml"
2021-02-20 09:19:17 +00:00
when: run_setup|bool and matrix_awx_enabled|bool
tags:
- import-awx
2021-02-28 14:21:40 +00:00
# Configure SFTP so user can upload a static website or access the servers export
2021-03-16 13:37:19 +00:00
- include_tasks: "{{ role_path }}/tasks/customise_website_access_export.yml"
2021-02-20 09:19:17 +00: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-16 13:37:19 +00:00
- include_tasks: "{{ role_path }}/tasks/set_variables_element.yml"
2021-02-20 09:19:17 +00:00
when: run_setup|bool and matrix_awx_enabled|bool
tags:
- setup-client-element
# Additional playbook to set the variable file during Synapse configuration
2021-03-16 13:37:19 +00:00
- include_tasks: "{{ role_path }}/tasks/set_variables_synapse.yml"
2021-02-20 09:19:17 +00: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-16 13:37:19 +00:00
- include_tasks: "{{ role_path }}/tasks/set_variables_jitsi.yml"
2021-02-20 09:19:17 +00: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-16 13:37:19 +00:00
- include_tasks: "{{ role_path }}/tasks/set_variables_ma1sd.yml"
2021-02-20 09:19:17 +00:00
when: run_setup|bool and matrix_awx_enabled|bool
tags:
- setup-ma1sd
2021-03-16 13:37:19 +00:00
2021-02-20 09:19:17 +00:00
# Additional playbook to set the variable file during Corporal configuration
2021-03-16 13:37:19 +00:00
- include_tasks: "{{ role_path }}/tasks/set_variables_corporal.yml"
2021-02-20 09:19:17 +00:00
when: run_setup|bool and matrix_awx_enabled|bool
tags:
2021-03-16 13:37:19 +00:00
- setup-corporal
2021-02-20 09:19:17 +00:00
# Additional playbook to set the variable file during Synapse Admin configuration
2021-03-16 13:37:19 +00:00
- include_tasks: "{{ role_path }}/tasks/set_variables_synapse_admin.yml"
2021-02-20 09:19:17 +00:00
when: run_setup|bool and matrix_awx_enabled|bool
tags:
2021-03-16 13:37:19 +00:00
- setup-synapse-admin
2021-02-20 09:19:17 +00:00
# Load newly formed matrix variables from tower volume
2021-03-16 13:37:19 +00:00
- include_tasks: "{{ role_path }}/tasks/load_matrix_variables.yml"
2021-02-20 09:19:17 +00:00
when: run_setup|bool and matrix_awx_enabled|bool
tags:
- always