diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-01-06 20:53:05 +0100 |
---|---|---|
committer | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-01-12 14:23:19 +0100 |
commit | 9041a816210132b1dad86217ecfef5f9fec4a8d2 (patch) | |
tree | 9cfc4a208e8d90ee198cd72f6e4ffeb443f8e794 /roles/openshift_preflight/common | |
parent | feeeb48f45ecbde3e5bcc2a66c7f947080d433e5 (diff) | |
download | openshift-9041a816210132b1dad86217ecfef5f9fec4a8d2.tar.gz openshift-9041a816210132b1dad86217ecfef5f9fec4a8d2.tar.bz2 openshift-9041a816210132b1dad86217ecfef5f9fec4a8d2.tar.xz openshift-9041a816210132b1dad86217ecfef5f9fec4a8d2.zip |
Refactor preflight check into roles
Diffstat (limited to 'roles/openshift_preflight/common')
l--------- | roles/openshift_preflight/common/library | 1 | ||||
-rw-r--r-- | roles/openshift_preflight/common/tasks/main.yml | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/roles/openshift_preflight/common/library b/roles/openshift_preflight/common/library new file mode 120000 index 000000000..ba40d2f56 --- /dev/null +++ b/roles/openshift_preflight/common/library @@ -0,0 +1 @@ +../../../library
\ No newline at end of file diff --git a/roles/openshift_preflight/common/tasks/main.yml b/roles/openshift_preflight/common/tasks/main.yml new file mode 100644 index 000000000..423b13586 --- /dev/null +++ b/roles/openshift_preflight/common/tasks/main.yml @@ -0,0 +1,22 @@ +--- +# check content available on all hosts +- when: + - not containerized + block: + + - name: determine if yum update will work + action: check_yum_update + register: r + + - set_fact: + oo_preflight_check_results: "{{ oo_preflight_check_results + [r|combine({'_task': 'check content available on all hosts'})] }}" + + - name: determine if expected version matches what is available + aos_version: + version: "{{ openshift_release }}" + when: + - deployment_type == "openshift-enterprise" + register: r + + - set_fact: + oo_preflight_check_results: "{{ oo_preflight_check_results + [r|combine({'_task': 'determine if expected version matches what is available'})] }}" |