Initial work on using externally defined roles

This commit is contained in:
Slavi Pantaleev
2022-11-04 14:58:28 +02:00
parent 4cbea602dd
commit c3a7237de7
12 changed files with 101 additions and 70 deletions

View File

@ -0,0 +1,5 @@
---
- ansible.builtin.import_tasks: "{{ role_path }}/tasks/validate_config.yml"
tags:
- setup-all

View File

@ -0,0 +1,12 @@
---
- name: (Deprecation) Catch and report renamed Matrix playbook settings
ansible.builtin.fail:
msg: >-
Your configuration contains a variable, which now has a different name.
Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
when: "item.old in vars"
with_items:
- {'old': 'matrix_vars_yml_snapshotting_enabled', 'new': 'devture_playbook_state_preserver_vars_preservation_enabled'}
- {'old': 'matrix_vars_yml_snapshotting_src', 'new': 'devture_playbook_state_preserver_vars_preservation_src'}
- {'old': 'matrix_playbook_commit_hash_preservation_enabled', 'new': 'devture_playbook_state_preserver_commit_hash_preservation_enabled'}