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

181 строка
4.5 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 the variables if needed
  10. - include_tasks:
  11. file: "rename_variables.yml"
  12. apply:
  13. tags: always
  14. when: run_setup|bool and matrix_awx_enabled|bool
  15. tags:
  16. - always
  17. # Perform a backup of the server
  18. - include_tasks:
  19. file: "backup_server.yml"
  20. apply:
  21. tags: backup-server
  22. when: run_setup|bool and matrix_awx_enabled|bool
  23. tags:
  24. - backup-server
  25. # Create a user account if called
  26. - include_tasks:
  27. file: "create_user.yml"
  28. apply:
  29. tags: create-user
  30. when: run_setup|bool and matrix_awx_enabled|bool
  31. tags:
  32. - create-user
  33. # Purge local/remote media if called
  34. - include_tasks:
  35. file: "purge_media_main.yml"
  36. apply:
  37. tags: purge-media
  38. when: run_setup|bool and matrix_awx_enabled|bool
  39. tags:
  40. - purge-media
  41. # Purge Synapse database if called
  42. - include_tasks:
  43. file: "purge_database_main.yml"
  44. apply:
  45. tags: purge-database
  46. when: run_setup|bool and matrix_awx_enabled|bool
  47. tags:
  48. - purge-database
  49. # Import configs, media repo from /chroot/backup import
  50. - include_tasks:
  51. file: "import_awx.yml"
  52. apply:
  53. tags: import-awx
  54. when: run_setup|bool and matrix_awx_enabled|bool
  55. tags:
  56. - import-awx
  57. # Perform extra self-check functions
  58. - include_tasks:
  59. file: "self_check.yml"
  60. apply:
  61. tags: self-check
  62. when: run_setup|bool and matrix_awx_enabled|bool
  63. tags:
  64. - self-check
  65. # Create cached matrix_vars.yml file
  66. - include_tasks:
  67. file: "cache_matrix_variables.yml"
  68. apply:
  69. tags: always
  70. when: run_setup|bool and matrix_awx_enabled|bool
  71. tags:
  72. - always
  73. # Configure SFTP so user can upload a static website or access the servers export
  74. - include_tasks:
  75. file: "customise_website_access_export.yml"
  76. apply:
  77. tags: setup-nginx-proxy
  78. when: run_setup|bool and matrix_awx_enabled|bool
  79. tags:
  80. - setup-nginx-proxy
  81. # Additional playbook to set the variable file during Element configuration
  82. - include_tasks:
  83. file: "set_variables_element.yml"
  84. apply:
  85. tags: setup-client-element
  86. when: run_setup|bool and matrix_awx_enabled|bool
  87. tags:
  88. - setup-client-element
  89. # Additional playbook to set the variable file during Mailer configuration
  90. - include_tasks:
  91. file: "set_variables_mailer.yml"
  92. apply:
  93. tags: setup-mailer
  94. when: run_setup|bool and matrix_awx_enabled|bool
  95. tags:
  96. - setup-mailer
  97. # Additional playbook to set the variable file during Element configuration
  98. - include_tasks:
  99. file: "set_variables_element_subdomain.yml"
  100. apply:
  101. tags: setup-client-element-subdomain
  102. when: run_setup|bool and matrix_awx_enabled|bool
  103. tags:
  104. - setup-client-element-subdomain
  105. # Additional playbook to set the variable file during Synapse configuration
  106. - include_tasks:
  107. file: "set_variables_synapse.yml"
  108. apply:
  109. tags: setup-synapse
  110. when: run_setup|bool and matrix_awx_enabled|bool
  111. tags:
  112. - setup-synapse
  113. # Additional playbook to set the variable file during Jitsi configuration
  114. - include_tasks:
  115. file: "set_variables_jitsi.yml"
  116. apply:
  117. tags: setup-jitsi
  118. when: run_setup|bool and matrix_awx_enabled|bool
  119. tags:
  120. - setup-jitsi
  121. # Additional playbook to set the variable file during Ma1sd configuration
  122. - include_tasks:
  123. file: "set_variables_ma1sd.yml"
  124. apply:
  125. tags: setup-ma1sd
  126. when: run_setup|bool and matrix_awx_enabled|bool
  127. tags:
  128. - setup-ma1sd
  129. # Additional playbook to set the variable file during Corporal configuration
  130. - include_tasks:
  131. file: "set_variables_corporal.yml"
  132. apply:
  133. tags: setup-corporal
  134. when: run_setup|bool and matrix_awx_enabled|bool
  135. tags:
  136. - setup-corporal
  137. # Additional playbook to set the variable file during Dimension configuration
  138. - include_tasks:
  139. file: "set_variables_dimension.yml"
  140. apply:
  141. tags: setup-dimension
  142. when: run_setup|bool and matrix_awx_enabled|bool
  143. tags:
  144. - setup-dimension
  145. # Additional playbook to set the variable file during Synapse Admin configuration
  146. - include_tasks:
  147. file: "set_variables_synapse_admin.yml"
  148. apply:
  149. tags: setup-synapse-admin
  150. when: run_setup|bool and matrix_awx_enabled|bool
  151. tags:
  152. - setup-synapse-admin
  153. # Load newly formed matrix variables from AWX volume
  154. - include_tasks:
  155. file: "load_matrix_variables.yml"
  156. apply:
  157. tags: always
  158. when: run_setup|bool and matrix_awx_enabled|bool
  159. tags:
  160. - always