deprecations.yml 645 B

1234567891011121314151617181920212223
  1. ---
  2. - name: Check for usage of deprecated variables
  3. check_deprecated:
  4. facts: "{{ hostvars[inventory_hostname] }}"
  5. vars: "{{ __warn_deprecated_vars }}"
  6. header: "{{ __deprecation_header }}"
  7. register: dep_check
  8. - block:
  9. - debug: msg="{{ dep_check.msg }}"
  10. - set_stats:
  11. data:
  12. installer_phase_initialize:
  13. message: "{{ dep_check.msg }}"
  14. when:
  15. - dep_check.changed
  16. # for with_fileglob Ansible resolves the path relative to the roles/<rolename>/files directory
  17. - name: Assign deprecated variables to correct counterparts
  18. include_tasks: "{{ item }}"
  19. with_fileglob:
  20. - "../tasks/__deprecations_*.yml"