--- # Since this task scrapes all inventory variables which may contain sensitive bits # mark it no_log - name: Check for usage of deprecated variables check_deprecated: facts: "{{ hostvars[inventory_hostname] }}" vars: "{{ __warn_deprecated_vars }}" header: "{{ __deprecation_header }}" register: dep_check no_log: true - 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//files directory - name: Assign deprecated variables to correct counterparts include_tasks: "{{ item }}" with_fileglob: - "../tasks/__deprecations_*.yml"