From 86e4c27bb2f84622e538d035efb6af76e2862d92 Mon Sep 17 00:00:00 2001 From: ewolinetz Date: Tue, 9 May 2017 13:00:05 -0500 Subject: Adding assert to check for python-passlib on control host --- roles/openshift_metrics/tasks/main.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/openshift_metrics/tasks/main.yaml b/roles/openshift_metrics/tasks/main.yaml index e8b7bea5c..e9389c78d 100644 --- a/roles/openshift_metrics/tasks/main.yaml +++ b/roles/openshift_metrics/tasks/main.yaml @@ -1,4 +1,12 @@ --- +- local_action: shell rpm -q python-passlib || echo not installed + register: passlib_result + +- name: Check that python-passlib is available on the control host + assert: + that: + - "'not installed' not in passlib_result.stdout" + msg: "python-passlib rpm must be installed on control host" - name: Set default image variables based on deployment_type include_vars: "{{ item }}" -- cgit v1.2.3