Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

35 satır
1.7 KiB

  1. # SPDX-FileCopyrightText: 2026 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Fail if migration version is not validated (first-time onboarding)
  6. ansible.builtin.fail:
  7. msg: >-
  8. This playbook now uses a migration validation system to help you stay aware of breaking changes.
  9. It appears that you haven't configured the `matrix_playbook_migration_validated_version` variable yet.
  10. Please review the changelog (https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/CHANGELOG.md)
  11. and then add the following to your vars.yml file:
  12. matrix_playbook_migration_validated_version: {{ matrix_playbook_migration_expected_version }}
  13. when: "matrix_playbook_migration_validated_version == ''"
  14. - name: Fail if migration version is outdated
  15. ansible.builtin.fail:
  16. msg: |-
  17. Your validated migration version ({{ matrix_playbook_migration_validated_version }}) is behind the expected version ({{ matrix_playbook_migration_expected_version }}).
  18. The following breaking changes have been introduced since your last validation:
  19. {% for item in matrix_playbook_migration_breaking_changes | selectattr('version', '>', matrix_playbook_migration_validated_version) | sort(attribute='version') %}
  20. - {{ item.version }}: {{ item.summary }} ({{ item.changelog_url }})
  21. {% endfor %}
  22. After reviewing the above changes and adapting your setup, update your vars.yml:
  23. matrix_playbook_migration_validated_version: "{{ matrix_playbook_migration_expected_version }}"
  24. when: "matrix_playbook_migration_validated_version != '' and matrix_playbook_migration_validated_version < matrix_playbook_migration_expected_version"