summaryrefslogtreecommitdiffstats
path: root/roles/openshift_sanitize_inventory/tasks
diff options
context:
space:
mode:
authorEric Wolinetz <ewolinet@redhat.com>2018-01-24 18:33:16 -0600
committerEric Wolinetz <ewolinet@redhat.com>2018-01-25 14:27:38 -0600
commit6ececc8d45da31895ac07bb7d835b09666e30548 (patch)
tree07de66ca07346018d1999717e8548ac16166c863 /roles/openshift_sanitize_inventory/tasks
parent0905e3ffb267317da5ae743f201438e2aca96f86 (diff)
downloadopenshift-6ececc8d45da31895ac07bb7d835b09666e30548.tar.gz
openshift-6ececc8d45da31895ac07bb7d835b09666e30548.tar.bz2
openshift-6ececc8d45da31895ac07bb7d835b09666e30548.tar.xz
openshift-6ececc8d45da31895ac07bb7d835b09666e30548.zip
Updating deprecations to use callback plugin
Diffstat (limited to 'roles/openshift_sanitize_inventory/tasks')
-rw-r--r--roles/openshift_sanitize_inventory/tasks/deprecations.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/roles/openshift_sanitize_inventory/tasks/deprecations.yml b/roles/openshift_sanitize_inventory/tasks/deprecations.yml
index 795b8ee60..b1ddbc07a 100644
--- a/roles/openshift_sanitize_inventory/tasks/deprecations.yml
+++ b/roles/openshift_sanitize_inventory/tasks/deprecations.yml
@@ -2,15 +2,18 @@
- name: Check for usage of deprecated variables
set_fact:
- __deprecation_message: "{{ __deprecation_message | default([]) }} + ['{{ __deprecation_header }} {{ item }} is a deprecated variable and will be no longer be used in the next minor release. Please update your inventory accordingly.']"
+ __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}}"
- - pause:
- seconds: "{{ 10 }}"
+ - run_once: true
+ set_stats:
+ data:
+ installer_phase_initialize:
+ message: "{{ __deprecation_message }}"
when:
- __deprecation_message | default ('') | length > 0