Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

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