Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

175 lines
12 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. - name: (Deprecation) Catch and report matrix_postgres variables
  35. ansible.builtin.fail:
  36. msg: |-
  37. 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).
  38. The new role is pretty much the same, but uses differently named variables.
  39. 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).
  40. The new role is pretty much the same, but uses differently named variables.
  41. Please change your configuration (vars.yml) to rename all `matrix_postgres`-prefixed variables (`matrix_postgres_*` -> `devture_postgres_*`).
  42. The following variables in your configuration need to be renamed: {{ vars | dict2items | selectattr('key', 'match', 'matrix_postgres_.*') | map (attribute='key') | join(', ') }}
  43. when: "vars | dict2items | selectattr('key', 'match', 'matrix_postgres_.*') | list | items2dict"
  44. - when: matrix_playbook_migration_matrix_prometheus_node_exporter_migration_validation_enabled | bool
  45. block:
  46. - ansible.builtin.set_fact:
  47. matrix_playbook_migration_matrix_prometheus_node_exporter_migration_vars: |-
  48. {{ vars | dict2items | selectattr('key', 'match', 'matrix_prometheus_node_exporter_.*') | list | items2dict }}
  49. - name: (Deprecation) Catch and report matrix_prometheus_node_exporter variables
  50. ansible.builtin.fail:
  51. msg: >-
  52. 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.
  53. The new role is compatible with the old one, but uses different names for its variables.
  54. Please change your configuration (vars.yml) to rename all variables (`matrix_prometheus_node_exporter_` -> `prometheus_node_exporter_`).
  55. We found usage of the following variables: {{ matrix_playbook_migration_matrix_prometheus_node_exporter_migration_vars.keys() | join(', ') }}
  56. when: "matrix_playbook_migration_matrix_prometheus_node_exporter_migration_vars | length > 0"
  57. - when: matrix_playbook_migration_matrix_prometheus_postgres_exporter_migration_validation_enabled | bool
  58. block:
  59. - ansible.builtin.set_fact:
  60. matrix_playbook_migration_matrix_prometheus_postgres_exporter_migration_vars: |-
  61. {{ vars | dict2items | selectattr('key', 'match', 'matrix_prometheus_postgres_exporter_.*') | list | items2dict }}
  62. - name: (Deprecation) Catch and report matrix_prometheus_postgres_exporter variables
  63. ansible.builtin.fail:
  64. msg: >-
  65. 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.
  66. The new role is compatible with the old one, but uses different names for its variables.
  67. Please change your configuration (vars.yml) to rename all variables (`matrix_prometheus_postgres_exporter_` -> `prometheus_postgres_exporter_`).
  68. We found usage of the following variables: {{ matrix_playbook_migration_matrix_prometheus_postgres_exporter_migration_vars.keys() | join(', ') }}
  69. when: "matrix_playbook_migration_matrix_prometheus_postgres_exporter_migration_vars | length > 0"
  70. - when: matrix_playbook_migration_matrix_backup_borg_migration_validation_enabled | bool
  71. block:
  72. - ansible.builtin.set_fact:
  73. matrix_playbook_migration_backup_borg_migration_vars: |-
  74. {{ vars | dict2items | selectattr('key', 'match', 'matrix_backup_borg_.*') | list | items2dict }}
  75. - name: (Deprecation) Catch and report matrix_backup_borg variables
  76. ansible.builtin.fail:
  77. msg: >-
  78. 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.
  79. The new role is compatible with the old one, but uses different names for its variables.
  80. Please change your configuration (vars.yml) to rename all variables (`matrix_backup_borg_` -> `backup_borg_`).
  81. We found usage of the following variables: {{ matrix_playbook_migration_backup_borg_migration_vars.keys() | join(', ') }}
  82. when: "matrix_playbook_migration_backup_borg_migration_vars | length > 0"
  83. - when: matrix_playbook_migration_matrix_grafana_migration_validation_enabled | bool
  84. block:
  85. - ansible.builtin.set_fact:
  86. matrix_playbook_migration_grafana_migration_vars: |-
  87. {{ vars | dict2items | selectattr('key', 'match', 'matrix_grafana_.*') | list | items2dict }}
  88. - name: (Deprecation) Catch and report matrix_grafana variables
  89. ansible.builtin.fail:
  90. msg: >-
  91. The matrix-grafana role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/grafana.
  92. The new role is compatible with the old one, but uses different names for its variables.
  93. Please change your configuration (vars.yml) to rename all variables (`matrix_grafana_` -> `grafana_`).
  94. We found usage of the following variables: {{ matrix_playbook_migration_grafana_migration_vars.keys() | join(', ') }}
  95. when: "matrix_playbook_migration_grafana_migration_vars | length > 0"
  96. - when: matrix_playbook_migration_matrix_ntfy_migration_validation_enabled | bool
  97. block:
  98. - ansible.builtin.set_fact:
  99. matrix_playbook_migration_ntfy_migration_vars: |-
  100. {{ vars | dict2items | selectattr('key', 'match', 'matrix_ntfy_.*') | list | items2dict }}
  101. - name: (Deprecation) Catch and report matrix_ntfy variables
  102. ansible.builtin.fail:
  103. msg: >-
  104. The matrix-ntfy role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/ntfy.
  105. The new role is compatible with the old one, but uses different names for its variables.
  106. Please change your configuration (vars.yml) to rename all variables (`matrix_ntfy_` -> `ntfy_`).
  107. We found usage of the following variables: {{ matrix_playbook_migration_ntfy_migration_vars.keys() | join(', ') }}
  108. when: "matrix_playbook_migration_ntfy_migration_vars | length > 0"
  109. - when: matrix_playbook_migration_matrix_redis_migration_validation_enabled | bool
  110. block:
  111. - ansible.builtin.set_fact:
  112. matrix_playbook_migration_redis_migration_vars: |-
  113. {{ vars | dict2items | selectattr('key', 'match', 'matrix_redis_.*') | list | items2dict }}
  114. - name: (Deprecation) Catch and report matrix_redis variables
  115. ansible.builtin.fail:
  116. msg: >-
  117. The matrix-redis role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/redis.
  118. The new role is compatible with the old one, but uses different names for its variables.
  119. Please change your configuration (vars.yml) to rename all variables (`matrix_redis_` -> `redis_`).
  120. We found usage of the following variables: {{ matrix_playbook_migration_redis_migration_vars.keys() | join(', ') }}
  121. when: "matrix_playbook_migration_redis_migration_vars | length > 0"
  122. - when: matrix_playbook_migration_matrix_etherpad_migration_validation_enabled | bool
  123. block:
  124. - ansible.builtin.set_fact:
  125. matrix_playbook_migration_etherpad_migration_vars: |-
  126. {{ vars | dict2items | selectattr('key', 'match', 'matrix_etherpad_.*') | list | items2dict }}
  127. - name: (Deprecation) Catch and report matrix_etherpad variables
  128. ansible.builtin.fail:
  129. msg: >-
  130. The matrix-etherpad role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/etherpad.
  131. The new role is compatible with the old one, but uses different names for its variables.
  132. Please change your configuration (vars.yml) to rename all variables (`matrix_etherpad_` -> `etherpad_`).
  133. We found usage of the following variables: {{ matrix_playbook_migration_etherpad_migration_vars.keys() | join(', ') }}
  134. when: "matrix_playbook_migration_etherpad_migration_vars | length > 0"
  135. - when: matrix_playbook_migration_matrix_aux_migration_validation_enabled | bool
  136. block:
  137. - ansible.builtin.set_fact:
  138. matrix_playbook_migration_aux_migration_vars: |-
  139. {{ vars | dict2items | selectattr('key', 'match', 'matrix_aux_.*') | list | items2dict }}
  140. - name: (Deprecation) Catch and report matrix_aux variables
  141. ansible.builtin.fail:
  142. msg: >-
  143. 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.
  144. The new role is compatible with the old one, but uses different names for its variables.
  145. Please change your configuration (vars.yml) to rename all variables (`matrix_aux_` -> `aux_`).
  146. We found usage of the following variables: {{ matrix_playbook_migration_aux_migration_vars.keys() | join(', ') }}
  147. when: "matrix_playbook_migration_aux_migration_vars | length > 0"