deprecations.yml 759 B

12345678910111213141516171819202122232425
  1. ---
  2. # Since this task scrapes all inventory variables which may contain sensitive bits
  3. # mark it no_log
  4. - name: Check for usage of deprecated variables
  5. check_deprecated:
  6. facts: "{{ hostvars[inventory_hostname] }}"
  7. vars: "{{ __warn_deprecated_vars }}"
  8. header: "{{ __deprecation_header }}"
  9. register: dep_check
  10. no_log: true
  11. - block:
  12. - debug: msg="{{ dep_check.msg }}"
  13. - set_stats:
  14. data:
  15. installer_phase_initialize:
  16. message: "{{ dep_check.msg }}"
  17. when:
  18. - dep_check.changed
  19. # for with_fileglob Ansible resolves the path relative to the roles/<rolename>/files directory
  20. - name: Assign deprecated variables to correct counterparts
  21. include_tasks: "{{ item }}"
  22. with_fileglob:
  23. - "../tasks/__deprecations_*.yml"