Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

174 Zeilen
6.6 KiB

  1. ---
  2. - name: include Lastpass-CLI.yml
  3. import_playbook: ../ansible/Lastpass-CLI.yml
  4. when:
  5. - __import_playbooks_played is not defined or (__import_playbooks_played is defined and 'Lastpass-CLI.yml' is not in __import_playbooks_played)
  6. tags:
  7. - setup-all
  8. - install-all
  9. - setup-docker
  10. - install-docker
  11. - name: "Set up a Matrix server"
  12. hosts: "{{ target if target is defined else 'matrix_servers' }}"
  13. become: true
  14. pre_tasks:
  15. - { name: push etckeeper, include_role: { name: "org-eu-glas.common-etckeeper", tasks_from: "push.yml"} , vars: { common_etckeeper_message: "{{ inventory_hostname }}: saving uncommitted changes in /etc before deploying role: {{ ansible_play_role_names|join(',') }} {{ common_etckeeper_revision_url }} {% if common_etckeeper_issue is defined and common_etckeeper_issue_url is defined %}{{common_etckeeper_issue_url}}{{ common_etckeeper_issue }}{% endif %}" }, when: __common_etckeeper_role_exists|length >0, tags: [always]}
  16. post_tasks:
  17. - { name: push etckeeper, include_role: { name: "org-eu-glas.common-etckeeper", tasks_from: "push.yml"} , vars: { common_etckeeper_message: "{{ inventory_hostname }}: saving uncommitted changes in /etc after deploying role: {{ ansible_play_role_names|join(',') }} {{ common_etckeeper_revision_url }} {% if common_etckeeper_issue is defined and common_etckeeper_issue_url is defined %}{{common_etckeeper_issue_url}}{{ common_etckeeper_issue }}{% endif %}" }, when: __common_etckeeper_role_exists|length >0, tags: [always]}
  18. vars:
  19. __common_etckeeper_role_exists: "{{ lookup('ansible.builtin.first_found', ['../ansible/roles/org-eu-glas.common-etckeeper/meta/main.yml', '/etc/ansible/roles/org-eu-glas.common-etckeeper/meta/main.yml'], skip=true) }}"
  20. roles:
  21. # Most of the roles below are not distributed with the playbook, but downloaded separately using `ansible-galaxy` via the `just roles` command (see `justfile`).
  22. - role: galaxy/playbook_help
  23. tags:
  24. - setup-all
  25. - install-all
  26. - role: galaxy/systemd_docker_base
  27. - role: custom/matrix_playbook_migration
  28. - when: matrix_playbook_docker_installation_enabled | bool
  29. role: galaxy/docker
  30. vars:
  31. docker_install_compose: false
  32. docker_install_compose_plugin: false
  33. tags:
  34. - setup-docker
  35. - setup-all
  36. - install-docker
  37. - install-all
  38. - when: devture_docker_sdk_for_python_installation_enabled | bool
  39. role: galaxy/docker_sdk_for_python
  40. tags:
  41. - setup-docker
  42. - setup-all
  43. - install-docker
  44. - install-all
  45. - when: devture_timesync_installation_enabled | bool
  46. role: galaxy/timesync
  47. tags:
  48. - setup-timesync
  49. - setup-all
  50. - install-timesync
  51. - install-all
  52. - custom/matrix-base
  53. - custom/matrix-dynamic-dns
  54. - galaxy/exim_relay
  55. - role: galaxy/postgres
  56. - galaxy/redis
  57. - galaxy/keydb
  58. - custom/matrix-corporal
  59. - custom/matrix-appservice-draupnir-for-all
  60. - custom/matrix-alertmanager-receiver
  61. - custom/matrix-bridge-appservice-discord
  62. - custom/matrix-bridge-appservice-slack
  63. - custom/matrix-bridge-appservice-webhooks
  64. - custom/matrix-bridge-appservice-irc
  65. - custom/matrix-bridge-appservice-kakaotalk
  66. - custom/matrix-bridge-beeper-linkedin
  67. - custom/matrix-bridge-go-skype-bridge
  68. - custom/matrix-bridge-wechat
  69. - custom/matrix-bridge-mautrix-facebook
  70. - custom/matrix-bridge-mautrix-twitter
  71. - custom/matrix-bridge-mautrix-hangouts
  72. - custom/matrix-bridge-mautrix-googlechat
  73. - custom/matrix-bridge-mautrix-instagram
  74. - custom/matrix-bridge-mautrix-meta-messenger
  75. - custom/matrix-bridge-mautrix-meta-instagram
  76. - custom/matrix-bridge-mautrix-telegram
  77. - custom/matrix-bridge-mautrix-signal
  78. - custom/matrix-bridge-mautrix-gmessages
  79. - custom/matrix-bridge-mautrix-whatsapp
  80. - custom/matrix-bridge-mautrix-wsproxy
  81. - custom/matrix-bridge-mautrix-discord
  82. - custom/matrix-bridge-mautrix-slack
  83. - custom/matrix-bridge-mx-puppet-discord
  84. - custom/matrix-bridge-mx-puppet-groupme
  85. - custom/matrix-bridge-mx-puppet-steam
  86. - custom/matrix-bridge-mx-puppet-slack
  87. - custom/matrix-bridge-mx-puppet-twitter
  88. - custom/matrix-bridge-mx-puppet-instagram
  89. - custom/matrix-bridge-sms
  90. - custom/matrix-bridge-heisenbridge
  91. - custom/matrix-bridge-hookshot
  92. - custom/matrix-bot-matrix-reminder-bot
  93. - custom/matrix-bot-matrix-registration-bot
  94. - custom/matrix-bot-maubot
  95. - custom/matrix-bot-buscarron
  96. - custom/matrix-bot-honoroit
  97. - custom/matrix-bot-postmoogle
  98. - custom/matrix-bot-go-neb
  99. - custom/matrix-bot-mjolnir
  100. - custom/matrix-bot-draupnir
  101. - custom/matrix-bot-chatgpt
  102. - custom/matrix-cactus-comments
  103. - custom/matrix-cactus-comments-client
  104. - custom/matrix-rageshake
  105. - custom/matrix-synapse
  106. - custom/matrix-synapse-auto-compressor
  107. - custom/matrix-synapse-reverse-proxy-companion
  108. - custom/matrix-dendrite
  109. - custom/matrix-conduit
  110. - custom/matrix-synapse-admin
  111. - custom/matrix-synapse-usage-exporter
  112. - galaxy/prometheus_node_exporter
  113. - galaxy/prometheus_postgres_exporter
  114. - custom/matrix-prometheus-nginxlog-exporter
  115. - galaxy/prometheus
  116. - galaxy/grafana
  117. - custom/matrix-prometheus-services-connect
  118. - custom/matrix-registration
  119. - custom/matrix-client-element
  120. - custom/matrix-client-hydrogen
  121. - custom/matrix-client-cinny
  122. - custom/matrix-client-schildichat
  123. - galaxy/jitsi
  124. - custom/matrix-user-verification-service
  125. - custom/matrix-ldap-registration-proxy
  126. - custom/matrix-ma1sd
  127. - custom/matrix-dimension
  128. - galaxy/etherpad
  129. - custom/matrix-sliding-sync
  130. - custom/matrix-email2matrix
  131. - custom/matrix-sygnal
  132. - galaxy/ntfy
  133. - custom/matrix-static-files
  134. - custom/matrix-coturn
  135. - custom/matrix-media-repo
  136. - custom/matrix-pantalaimon
  137. - role: galaxy/postgres_backup
  138. - role: galaxy/backup_borg
  139. - custom/matrix-user-creator
  140. - custom/matrix-common-after
  141. - role: galaxy/container_socket_proxy
  142. - role: galaxy/traefik
  143. - role: galaxy/traefik_certs_dumper
  144. - role: galaxy/auxiliary
  145. - when: devture_systemd_service_manager_enabled | bool
  146. role: galaxy/systemd_service_manager
  147. # This is pretty much last, because we want it to better serve as a "last known good configuration".
  148. # See: https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2217#issuecomment-1301487601
  149. - when: devture_playbook_state_preserver_enabled | bool
  150. role: galaxy/playbook_state_preserver
  151. tags:
  152. - setup-all
  153. - install-all
  154. - role: galaxy/playbook_runtime_messages