summaryrefslogtreecommitdiffstats
path: root/roles/openshift_metrics
diff options
context:
space:
mode:
authorewolinetz <ewolinet@redhat.com>2017-05-09 13:00:05 -0500
committerewolinetz <ewolinet@redhat.com>2017-05-11 08:46:25 -0500
commit86e4c27bb2f84622e538d035efb6af76e2862d92 (patch)
treeabae7cefef9dc61493d3eca45f6eb405583ada13 /roles/openshift_metrics
parent9dbb535ec19b25a9bbfb83246faeed0638936bc0 (diff)
downloadopenshift-86e4c27bb2f84622e538d035efb6af76e2862d92.tar.gz
openshift-86e4c27bb2f84622e538d035efb6af76e2862d92.tar.bz2
openshift-86e4c27bb2f84622e538d035efb6af76e2862d92.tar.xz
openshift-86e4c27bb2f84622e538d035efb6af76e2862d92.zip
Adding assert to check for python-passlib on control host
Diffstat (limited to 'roles/openshift_metrics')
-rw-r--r--roles/openshift_metrics/tasks/main.yaml8
1 files changed, 8 insertions, 0 deletions
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 }}"