123456789101112131415161718192021222324 |
- ---
- - name: Check for usage of deprecated variables
- set_fact:
- __deprecation_message: "{{ __deprecation_message | default( __deprecation_header ) }} \n\t{{ item }}"
- when:
- - hostvars[inventory_hostname][item] is defined
- with_items: "{{ __warn_deprecated_vars }}"
- - block:
- - debug: msg="{{__deprecation_message}}"
- - run_once: true
- set_stats:
- data:
- installer_phase_initialize:
- message: "{{ __deprecation_message }}"
- when:
- - __deprecation_message | default ('') | length > 0
- # 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"
|