summaryrefslogtreecommitdiffstats
path: root/roles/openshift_excluder/tasks/disable.yml
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-03-01 12:54:19 +0100
committerJan Chaloupka <jchaloup@redhat.com>2017-03-07 22:27:48 +0100
commit1a16667b6a2e99ca6dc6b83c5794fb9995501280 (patch)
tree3427f0f326a307bf2b63e16c8fb5c1f887731712 /roles/openshift_excluder/tasks/disable.yml
parent6ecb86b2fcc36e3383d86395d3be0a443e12981e (diff)
downloadopenshift-1a16667b6a2e99ca6dc6b83c5794fb9995501280.tar.gz
openshift-1a16667b6a2e99ca6dc6b83c5794fb9995501280.tar.bz2
openshift-1a16667b6a2e99ca6dc6b83c5794fb9995501280.tar.xz
openshift-1a16667b6a2e99ca6dc6b83c5794fb9995501280.zip
- update excluders to latest, in non-upgrade scenarios do not update
- check both available excluder versions are at most of upgrade target version - get excluder status through status command - make excluders enablement configurable
Diffstat (limited to 'roles/openshift_excluder/tasks/disable.yml')
-rw-r--r--roles/openshift_excluder/tasks/disable.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/roles/openshift_excluder/tasks/disable.yml b/roles/openshift_excluder/tasks/disable.yml
new file mode 100644
index 000000000..a8deb3eb1
--- /dev/null
+++ b/roles/openshift_excluder/tasks/disable.yml
@@ -0,0 +1,26 @@
+---
+# input variables
+# - with_status_check
+# - with_install
+# - excluder_package_state
+# - docker_excluder_package_state
+- include: init.yml
+
+# Install any excluder that is enabled
+- include: install.yml
+ vars:
+ # Both docker_excluder_on and openshift_excluder_on are set in openshift_excluder->init task
+ install_docker_excluder: "{{ docker_excluder_on | bool }}"
+ install_openshift_excluder: "{{ openshift_excluder_on | bool }}"
+ when: docker_excluder_on or openshift_excluder_on
+
+ # if the docker excluder is not enabled, we don't care about its status
+ # it the docker excluder is enabled, we install it and in case its status is non-zero
+ # it is enabled no matter what
+
+# Check the current state of all excluders
+- include: status.yml
+ when: with_status_check | default(docker_excluder_on or openshift_excluder_on) | bool
+
+ # And finally adjust an excluder in order to update host components correctly
+- include: adjust.yml