Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

226 строки
5.6 KiB

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