summaryrefslogtreecommitdiffstats
path: root/roles/openshift_sanitize_inventory/tasks/deprecations.yml
blob: b1ddbc07aad7065bed0ada3dedfdecab9b967ccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---

- 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"