1234567891011121314151617181920212223 |
- ---
- - name: Check for usage of deprecated variables
- check_deprecated:
- facts: "{{ hostvars[inventory_hostname] }}"
- vars: "{{ __warn_deprecated_vars }}"
- header: "{{ __deprecation_header }}"
- register: dep_check
- - block:
- - debug: msg="{{ dep_check.msg }}"
- - set_stats:
- data:
- installer_phase_initialize:
- message: "{{ dep_check.msg }}"
- when:
- - dep_check.changed
- # for with_fileglob Ansible resolves the path relative to the roles/<rolename>/files directory
- - name: Assign deprecated variables to correct counterparts
- include_tasks: "{{ item }}"
- with_fileglob:
- - "../tasks/__deprecations_*.yml"
|