Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

226 lines
5.5 KiB

  1. ---
  2. # Load initial hosting and organisation variables from AWX volume
  3. - include_tasks:
  4. file: "load_hosting_and_org_variables.yml"
  5. apply:
  6. tags: always
  7. when: run_setup|bool and matrix_awx_enabled|bool
  8. tags:
  9. - always
  10. # Renames or updates the vars.yml if needed
  11. - include_tasks:
  12. file: "update_variables.yml"
  13. apply:
  14. tags: always
  15. when: run_setup|bool and matrix_awx_enabled|bool
  16. tags:
  17. - always
  18. # Create AWX session token
  19. - include_tasks:
  20. file: "create_session_token.yml"
  21. apply:
  22. tags: always
  23. when: run_setup|bool and matrix_awx_enabled|bool
  24. tags:
  25. - always
  26. # Perform a backup of the server
  27. - include_tasks:
  28. file: "backup_server.yml"
  29. apply:
  30. tags: backup-server
  31. when: run_setup|bool and matrix_awx_enabled|bool
  32. tags:
  33. - backup-server
  34. # Perform a export of the server
  35. - include_tasks:
  36. file: "export_server.yml"
  37. apply:
  38. tags: export-server
  39. when: run_setup|bool and matrix_awx_enabled|bool
  40. tags:
  41. - export-server
  42. # Create a user account if called
  43. - include_tasks:
  44. file: "create_user.yml"
  45. apply:
  46. tags: create-user
  47. when: run_setup|bool and matrix_awx_enabled|bool
  48. tags:
  49. - create-user
  50. # Purge local/remote media if called
  51. - include_tasks:
  52. file: "purge_media_main.yml"
  53. apply:
  54. tags: purge-media
  55. when: run_setup|bool and matrix_awx_enabled|bool
  56. tags:
  57. - purge-media
  58. # Purge Synapse database if called
  59. - include_tasks:
  60. file: "purge_database_main.yml"
  61. apply:
  62. tags: purge-database
  63. when: run_setup|bool and matrix_awx_enabled|bool
  64. tags:
  65. - purge-database
  66. # Rotate SSH key if called
  67. - include_tasks:
  68. file: "rotate_ssh.yml"
  69. apply:
  70. tags: rotate-ssh
  71. when: run_setup|bool and matrix_awx_enabled|bool
  72. tags:
  73. - rotate-ssh
  74. # Import configs, media repo from /chroot/backup import
  75. - include_tasks:
  76. file: "import_awx.yml"
  77. apply:
  78. tags: import-awx
  79. when: run_setup|bool and matrix_awx_enabled|bool
  80. tags:
  81. - import-awx
  82. # Perform extra self-check functions
  83. - include_tasks:
  84. file: "self_check.yml"
  85. apply:
  86. tags: self-check
  87. when: run_setup|bool and matrix_awx_enabled|bool
  88. tags:
  89. - self-check
  90. # Create cached matrix_vars.yml file
  91. - include_tasks:
  92. file: "cache_matrix_variables.yml"
  93. apply:
  94. tags: always
  95. when: run_setup|bool and matrix_awx_enabled|bool
  96. tags:
  97. - always
  98. # Configure SFTP so user can upload a static website or access the servers export
  99. - include_tasks:
  100. file: "customise_website_access_export.yml"
  101. apply:
  102. tags: setup-nginx-proxy
  103. when: run_setup|bool and matrix_awx_enabled|bool
  104. tags:
  105. - setup-nginx-proxy
  106. # Additional playbook to set the variable file during Element configuration
  107. - include_tasks:
  108. file: "set_variables_element.yml"
  109. apply:
  110. tags: setup-client-element
  111. when: run_setup|bool and matrix_awx_enabled|bool
  112. tags:
  113. - setup-client-element
  114. # Additional playbook to set the variable file during Mailer configuration
  115. - include_tasks:
  116. file: "set_variables_mailer.yml"
  117. apply:
  118. tags: setup-mailer
  119. when: run_setup|bool and matrix_awx_enabled|bool
  120. tags:
  121. - setup-mailer
  122. # Additional playbook to set the variable file during Element configuration
  123. - include_tasks:
  124. file: "set_variables_element_subdomain.yml"
  125. apply:
  126. tags: setup-client-element-subdomain
  127. when: run_setup|bool and matrix_awx_enabled|bool
  128. tags:
  129. - setup-client-element-subdomain
  130. # Additional playbook to set the variable file during Synapse configuration
  131. - include_tasks:
  132. file: "set_variables_synapse.yml"
  133. apply:
  134. tags: setup-synapse
  135. when: run_setup|bool and matrix_awx_enabled|bool
  136. tags:
  137. - setup-synapse
  138. # Additional playbook to set the variable file during Jitsi configuration
  139. - include_tasks:
  140. file: "set_variables_jitsi.yml"
  141. apply:
  142. tags: setup-jitsi
  143. when: run_setup|bool and matrix_awx_enabled|bool
  144. tags:
  145. - setup-jitsi
  146. # Additional playbook to set the variable file during Ma1sd configuration
  147. - include_tasks:
  148. file: "set_variables_ma1sd.yml"
  149. apply:
  150. tags: setup-ma1sd
  151. when: run_setup|bool and matrix_awx_enabled|bool
  152. tags:
  153. - setup-ma1sd
  154. # Additional playbook to set the variable file during Corporal configuration
  155. - include_tasks:
  156. file: "set_variables_corporal.yml"
  157. apply:
  158. tags: setup-corporal
  159. when: run_setup|bool and matrix_awx_enabled|bool
  160. tags:
  161. - setup-corporal
  162. # Additional playbook to set the variable file during Dimension configuration
  163. - include_tasks:
  164. file: "set_variables_dimension.yml"
  165. apply:
  166. tags: setup-dimension
  167. when: run_setup|bool and matrix_awx_enabled|bool
  168. tags:
  169. - setup-dimension
  170. # Additional playbook to set the variable file during Synapse Admin configuration
  171. - include_tasks:
  172. file: "set_variables_synapse_admin.yml"
  173. apply:
  174. tags: setup-synapse-admin
  175. when: run_setup|bool and matrix_awx_enabled|bool
  176. tags:
  177. - setup-synapse-admin
  178. # Additional playbook to set the variable file during Discord Appservice Bridge configuration
  179. - include_tasks:
  180. file: "bridge_discord_appservice.yml"
  181. apply:
  182. tags: bridge-discord-appservice
  183. when: run_setup|bool and matrix_awx_enabled|bool
  184. tags:
  185. - bridge-discord-appservice
  186. # Delete AWX session token
  187. - include_tasks:
  188. file: "delete_session_token.yml"
  189. apply:
  190. tags: always
  191. when: run_setup|bool and matrix_awx_enabled|bool
  192. tags:
  193. - always
  194. # Load newly formed matrix variables from AWX volume
  195. - include_tasks:
  196. file: "load_matrix_variables.yml"
  197. apply:
  198. tags: always
  199. when: run_setup|bool and matrix_awx_enabled|bool
  200. tags:
  201. - always