diff options
author | Jan Chaloupka <jchaloup@redhat.com> | 2017-03-01 12:54:19 +0100 |
---|---|---|
committer | Jan Chaloupka <jchaloup@redhat.com> | 2017-03-07 22:27:48 +0100 |
commit | 1a16667b6a2e99ca6dc6b83c5794fb9995501280 (patch) | |
tree | 3427f0f326a307bf2b63e16c8fb5c1f887731712 /roles/openshift_excluder/tasks/install.yml | |
parent | 6ecb86b2fcc36e3383d86395d3be0a443e12981e (diff) | |
download | openshift-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/install.yml')
-rw-r--r-- | roles/openshift_excluder/tasks/install.yml | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/roles/openshift_excluder/tasks/install.yml b/roles/openshift_excluder/tasks/install.yml index ee4cb2c05..01fe5da55 100644 --- a/roles/openshift_excluder/tasks/install.yml +++ b/roles/openshift_excluder/tasks/install.yml @@ -1,16 +1,21 @@ --- -- name: Install latest excluder - package: - name: "{{ openshift.common.service_type }}-excluder" - state: latest - when: - - openshift_excluder_enabled | default(false) | bool - - not openshift.common.is_containerized | bool +# input Variables +# - install_docker_excluder +# - install_openshift_excluder +- block: + + - name: Install docker excluder + package: + name: "{{ openshift.common.service_type }}-docker-excluder" + state: "{{ docker_excluder_package_state }}" + when: + - install_docker_excluder | default(true) | bool -- name: Install latest docker excluder - package: - name: "{{ openshift.common.service_type }}-excluder" - state: latest + - name: Install openshift excluder + package: + name: "{{ openshift.common.service_type }}-excluder" + state: "{{ openshift_excluder_package_state }}" + when: + - install_openshift_excluder | default(true) | bool when: - - docker_excluder_enabled | default(false) | bool - not openshift.common.is_containerized | bool |