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

211 строки
16 KiB

  1. ---
  2. - name: (Deprecation) Catch and report renamed Matrix playbook settings
  3. ansible.builtin.fail:
  4. msg: >-
  5. Your configuration contains a variable, which now has a different name.
  6. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  7. when: "item.old in vars"
  8. with_items:
  9. - {'old': 'matrix_vars_yml_snapshotting_enabled', 'new': 'devture_playbook_state_preserver_vars_preservation_enabled'}
  10. - {'old': 'matrix_vars_yml_snapshotting_src', 'new': 'devture_playbook_state_preserver_vars_preservation_src'}
  11. - {'old': 'matrix_playbook_commit_hash_preservation_enabled', 'new': 'devture_playbook_state_preserver_commit_hash_preservation_enabled'}
  12. - {'old': 'matrix_ntpd_package', 'new': 'devture_timesync_ntpd_package'}
  13. - {'old': 'matrix_ntpd_service', 'new': 'devture_timesync_ntpd_service'}
  14. - {'old': 'matrix_systemd_unit_home_path', 'new': 'devture_systemd_docker_base_systemd_unit_home_path'}
  15. - {'old': 'matrix_systemd_path', 'new': 'devture_systemd_docker_base_systemd_path'}
  16. - {'old': 'matrix_host_command_docker', 'new': 'devture_systemd_docker_base_host_command_docker'}
  17. - {'old': 'matrix_host_command_sh', 'new': 'devture_systemd_docker_base_host_command_sh'}
  18. - {'old': 'matrix_host_command_systemctl', 'new': 'devture_systemd_docker_base_host_command_systemctl'}
  19. - {'old': 'matrix_container_retries_count', 'new': 'devture_playbook_help_container_retries_count'}
  20. - {'old': 'matrix_container_retries_delay', 'new': 'devture_playbook_help_container_retries_delay'}
  21. - {'old': 'matrix_geturl_retries_count', 'new': 'devture_playbook_help_geturl_retries_count'}
  22. - {'old': 'matrix_geturl_retries_delay', 'new': 'devture_playbook_help_geturl_retries_delay'}
  23. - {'old': 'matrix_nginx_proxy_synapse_cache_path', 'new': 'matrix_synapse_reverse_proxy_companion_synapse_cache_path'}
  24. - {'old': 'matrix_nginx_proxy_synapse_cache_enabled', 'new': 'matrix_synapse_reverse_proxy_companion_synapse_cache_enabled'}
  25. - {'old': 'matrix_docker_installation_enabled', 'new': 'matrix_playbook_docker_installation_enabled'}
  26. - {'old': 'matrix_docker_package_name', 'new': '<Not applicable. Docker is installed using https://github.com/geerlingguy/ansible-role-docker now>'}
  27. - {'old': 'matrix_systemd_services_list', 'new': 'devture_systemd_service_manager_services_list_additional'}
  28. - {'old': 'matrix_common_after_systemd_service_start_wait_for_timeout_seconds', 'new': 'devture_systemd_service_manager_up_verification_delay_seconds'}
  29. - {'old': 'matrix_systemd_services_autostart_enabled', 'new': 'devture_systemd_service_manager_services_autostart_enabled'}
  30. - {'old': 'matrix_prometheus_node_exporter_metrics_proxying_enabled', 'new': 'matrix_prometheus_services_proxy_connect_prometheus_node_exporter_metrics_proxying_enabled'}
  31. - {'old': 'matrix_prometheus_postgres_exporter_metrics_proxying_enabled', 'new': 'matrix_prometheus_services_proxy_connect_prometheus_postgres_exporter_metrics_proxying_enabled'}
  32. - {'old': 'matrix_playbook_traefik_certs_dumper_role_enabled', 'new': 'devture_traefik_certs_dumper_enabled'}
  33. - {'old': 'matrix_playbook_traefik_role_enabled', 'new': 'devture_traefik_enabled'}
  34. # Most important variables from the old Prometheus role here, for people who miss the changelog entry
  35. - {'old': 'matrix_prometheus_enabled', 'new': 'prometheus_enabled'}
  36. - {'old': 'matrix_prometheus_process_default_arguments', 'new': 'prometheus_process_default_arguments'}
  37. - {'old': 'matrix_prometheus_process_extra_arguments', 'new': 'prometheus_process_extra_arguments'}
  38. - {'old': 'matrix_prometheus_configuration_extension_yaml', 'new': 'prometheus_configuration_extension_yaml'}
  39. - {'old': 'matrix_prometheus_scraper_synapse_enabled', 'new': 'matrix_prometheus_services_connect_synapse_enabled'}
  40. - {'old': 'matrix_prometheus_scraper_synapse_targets', 'new': '<superseded by matrix_prometheus_services_connect_scraper_synapse_main_process_static_configs_target>'}
  41. - {'old': 'matrix_prometheus_scraper_synapse_workers_enabled_list', 'new': 'matrix_prometheus_services_connect_scraper_synapse_workers_enabled_list'}
  42. - {'old': 'matrix_prometheus_scraper_synapse_rules_synapse_tag', 'new': 'matrix_prometheus_services_connect_synapse_rules_download_synapse_tag'}
  43. - {'old': 'matrix_prometheus_scraper_node_enabled', 'new': 'prometheus_self_node_scraper_enabled'}
  44. - {'old': 'matrix_prometheus_scraper_node_targets', 'new': '<superseded by prometheus_self_node_scraper_static_configs_target>'}
  45. - {'old': 'matrix_prometheus_scraper_postgres_enabled', 'new': 'matrix_prometheus_services_connect_scraper_postgres_enabled'}
  46. - {'old': 'matrix_prometheus_scraper_postgres_targets', 'new': '<superseded by matrix_prometheus_services_connect_scraper_postgres_static_configs_target>'}
  47. - {'old': 'matrix_prometheus_scraper_hookshot_enabled', 'new': 'matrix_prometheus_services_connect_scraper_hookshot_enabled'}
  48. - {'old': 'matrix_prometheus_scraper_hookshot_targets', 'new': '<superseded by matrix_prometheus_services_connect_scraper_hookshot_static_configs_target>'}
  49. - {'old': 'matrix_prometheus_scraper_nginxlog_enabled', 'new': 'matrix_prometheus_services_connect_scraper_nginxlog_enabled'}
  50. - {'old': 'matrix_prometheus_scraper_nginxlog_server_port', 'new': 'matrix_prometheus_services_connect_scraper_nginxlog_static_configs_target'}
  51. - {'old': 'matrix_prosody_jitsi_max_participants', 'new': 'jitsi_prosody_max_participants'}
  52. - {'old': 'jitsi_require_well_known', 'new': 'jitsi_web_well_known_element_jitsi_enabled'}
  53. - {'old': 'jitsi_wellknown_element_jitsi_json', 'new': 'jitsi_web_well_known_element_jitsi_json'}
  54. - name: (Deprecation) Catch and report matrix_postgres variables
  55. ansible.builtin.fail:
  56. msg: |-
  57. The matrix-postgres role in the playbook has been replaced with the com.devture.ansible.role.postgres role (https://github.com/devture/com.devture.ansible.role.postgres).
  58. The new role is pretty much the same, but uses differently named variables.
  59. The matrix-postgres-backup role in the playbook has been replaced with the com.devture.ansible.role.postgres_backup role (https://github.com/devture/com.devture.ansible.role.postgres_backup).
  60. The new role is pretty much the same, but uses differently named variables.
  61. Please change your configuration (vars.yml) to rename all `matrix_postgres`-prefixed variables (`matrix_postgres_*` -> `devture_postgres_*`).
  62. The following variables in your configuration need to be renamed: {{ vars | dict2items | selectattr('key', 'match', 'matrix_postgres_.*') | map (attribute='key') | join(', ') }}
  63. when: "vars | dict2items | selectattr('key', 'match', 'matrix_postgres_.*') | list | items2dict"
  64. - when: matrix_playbook_migration_matrix_prometheus_node_exporter_migration_validation_enabled | bool
  65. block:
  66. - ansible.builtin.set_fact:
  67. matrix_playbook_migration_matrix_prometheus_node_exporter_migration_vars: |-
  68. {{ vars | dict2items | selectattr('key', 'match', 'matrix_prometheus_node_exporter_.*') | list | items2dict }}
  69. - name: (Deprecation) Catch and report matrix_prometheus_node_exporter variables
  70. ansible.builtin.fail:
  71. msg: >-
  72. The matrix-prometheus-node-exporter role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/prometheus_node_exporter.
  73. The new role is compatible with the old one, but uses different names for its variables.
  74. Please change your configuration (vars.yml) to rename all variables (`matrix_prometheus_node_exporter_` -> `prometheus_node_exporter_`).
  75. We found usage of the following variables: {{ matrix_playbook_migration_matrix_prometheus_node_exporter_migration_vars.keys() | join(', ') }}
  76. when: "matrix_playbook_migration_matrix_prometheus_node_exporter_migration_vars | length > 0"
  77. - when: matrix_playbook_migration_matrix_prometheus_postgres_exporter_migration_validation_enabled | bool
  78. block:
  79. - ansible.builtin.set_fact:
  80. matrix_playbook_migration_matrix_prometheus_postgres_exporter_migration_vars: |-
  81. {{ vars | dict2items | selectattr('key', 'match', 'matrix_prometheus_postgres_exporter_.*') | list | items2dict }}
  82. - name: (Deprecation) Catch and report matrix_prometheus_postgres_exporter variables
  83. ansible.builtin.fail:
  84. msg: >-
  85. The matrix-prometheus-postgres-exporter role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/prometheus_postgres_exporter.
  86. The new role is compatible with the old one, but uses different names for its variables.
  87. Please change your configuration (vars.yml) to rename all variables (`matrix_prometheus_postgres_exporter_` -> `prometheus_postgres_exporter_`).
  88. We found usage of the following variables: {{ matrix_playbook_migration_matrix_prometheus_postgres_exporter_migration_vars.keys() | join(', ') }}
  89. when: "matrix_playbook_migration_matrix_prometheus_postgres_exporter_migration_vars | length > 0"
  90. - when: matrix_playbook_migration_matrix_backup_borg_migration_validation_enabled | bool
  91. block:
  92. - ansible.builtin.set_fact:
  93. matrix_playbook_migration_backup_borg_migration_vars: |-
  94. {{ vars | dict2items | selectattr('key', 'match', 'matrix_backup_borg_.*') | list | items2dict }}
  95. - name: (Deprecation) Catch and report matrix_backup_borg variables
  96. ansible.builtin.fail:
  97. msg: >-
  98. The matrix-backup-borg role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/backup_borg.
  99. The new role is compatible with the old one, but uses different names for its variables.
  100. Please change your configuration (vars.yml) to rename all variables (`matrix_backup_borg_` -> `backup_borg_`).
  101. We found usage of the following variables: {{ matrix_playbook_migration_backup_borg_migration_vars.keys() | join(', ') }}
  102. when: "matrix_playbook_migration_backup_borg_migration_vars | length > 0"
  103. - when: matrix_playbook_migration_matrix_grafana_migration_validation_enabled | bool
  104. block:
  105. - ansible.builtin.set_fact:
  106. matrix_playbook_migration_grafana_migration_vars: |-
  107. {{ vars | dict2items | selectattr('key', 'match', 'matrix_grafana_.*') | list | items2dict }}
  108. - name: (Deprecation) Catch and report matrix_grafana variables
  109. ansible.builtin.fail:
  110. msg: >-
  111. The matrix-grafana role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/grafana.
  112. The new role is compatible with the old one, but uses different names for its variables.
  113. Please change your configuration (vars.yml) to rename all variables (`matrix_grafana_` -> `grafana_`).
  114. We found usage of the following variables: {{ matrix_playbook_migration_grafana_migration_vars.keys() | join(', ') }}
  115. when: "matrix_playbook_migration_grafana_migration_vars | length > 0"
  116. - when: matrix_playbook_migration_matrix_ntfy_migration_validation_enabled | bool
  117. block:
  118. - ansible.builtin.set_fact:
  119. matrix_playbook_migration_ntfy_migration_vars: |-
  120. {{ vars | dict2items | selectattr('key', 'match', 'matrix_ntfy_.*') | list | items2dict }}
  121. - name: (Deprecation) Catch and report matrix_ntfy variables
  122. ansible.builtin.fail:
  123. msg: >-
  124. The matrix-ntfy role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/ntfy.
  125. The new role is compatible with the old one, but uses different names for its variables.
  126. Please change your configuration (vars.yml) to rename all variables (`matrix_ntfy_` -> `ntfy_`).
  127. We found usage of the following variables: {{ matrix_playbook_migration_ntfy_migration_vars.keys() | join(', ') }}
  128. when: "matrix_playbook_migration_ntfy_migration_vars | length > 0"
  129. - when: matrix_playbook_migration_matrix_redis_migration_validation_enabled | bool
  130. block:
  131. - ansible.builtin.set_fact:
  132. matrix_playbook_migration_redis_migration_vars: |-
  133. {{ vars | dict2items | selectattr('key', 'match', 'matrix_redis_.*') | list | items2dict }}
  134. - name: (Deprecation) Catch and report matrix_redis variables
  135. ansible.builtin.fail:
  136. msg: >-
  137. The matrix-redis role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/redis.
  138. The new role is compatible with the old one, but uses different names for its variables.
  139. Please change your configuration (vars.yml) to rename all variables (`matrix_redis_` -> `redis_`).
  140. We found usage of the following variables: {{ matrix_playbook_migration_redis_migration_vars.keys() | join(', ') }}
  141. when: "matrix_playbook_migration_redis_migration_vars | length > 0"
  142. - when: matrix_playbook_migration_matrix_etherpad_migration_validation_enabled | bool
  143. block:
  144. - ansible.builtin.set_fact:
  145. matrix_playbook_migration_etherpad_migration_vars: |-
  146. {{ vars | dict2items | selectattr('key', 'match', 'matrix_etherpad_.*') | list | items2dict }}
  147. - name: (Deprecation) Catch and report matrix_etherpad variables
  148. ansible.builtin.fail:
  149. msg: >-
  150. The matrix-etherpad role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/etherpad.
  151. The new role is compatible with the old one, but uses different names for its variables.
  152. Please change your configuration (vars.yml) to rename all variables (`matrix_etherpad_` -> `etherpad_`).
  153. We found usage of the following variables: {{ matrix_playbook_migration_etherpad_migration_vars.keys() | join(', ') }}
  154. when: "matrix_playbook_migration_etherpad_migration_vars | length > 0"
  155. - when: matrix_playbook_migration_matrix_aux_migration_validation_enabled | bool
  156. block:
  157. - ansible.builtin.set_fact:
  158. matrix_playbook_migration_aux_migration_vars: |-
  159. {{ vars | dict2items | selectattr('key', 'match', 'matrix_aux_.*') | list | items2dict }}
  160. - name: (Deprecation) Catch and report matrix_aux variables
  161. ansible.builtin.fail:
  162. msg: >-
  163. The matrix-aux role that used to be part of this playbook has been replaced by https://github.com/mother-of-all-self-hosting/ansible-role-aux.
  164. The new role is compatible with the old one, but uses different names for its variables.
  165. Please change your configuration (vars.yml) to rename all variables (`matrix_aux_` -> `aux_`).
  166. We found usage of the following variables: {{ matrix_playbook_migration_aux_migration_vars.keys() | join(', ') }}
  167. when: "matrix_playbook_migration_aux_migration_vars | length > 0"
  168. - when: matrix_playbook_migration_matrix_jitsi_migration_validation_enabled | bool
  169. block:
  170. - ansible.builtin.set_fact:
  171. matrix_playbook_migration_jitsi_migration_vars: |-
  172. {{ vars | dict2items | selectattr('key', 'match', 'matrix_jitsi_.*') | list | items2dict }}
  173. - name: (Deprecation) Catch and report matrix_jitsi variables
  174. ansible.builtin.fail:
  175. msg: >-
  176. The matrix-jitsi role that used to be part of this playbook has been replaced by https://github.com/mother-of-all-self-hosting/ansible-role-jitsi.
  177. The new role is compatible with the old one, but uses different names for its variables.
  178. Please change your configuration (vars.yml) to rename all variables (`matrix_jitsi_` -> `jitsi_`).
  179. We found usage of the following variables: {{ matrix_playbook_migration_jitsi_migration_vars.keys() | join(', ') }}
  180. when: "matrix_playbook_migration_jitsi_migration_vars | length > 0"