deprecations.yml 624 B

12345678910111213141516171819202122
  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. - name: Assign deprecated variables to correct counterparts
  20. import_tasks: __deprecations_logging.yml