diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-03-20 14:12:54 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2017-03-20 14:12:54 -0400 |
commit | 36b7f1bb7b036d619f224594c4fc08ed2b434a80 (patch) | |
tree | 5f198a9e5355657554040d8264e3c1d240b21a1d /roles/openshift_excluder/tasks | |
parent | 6aee40fc1fab324134f4a28c2b124ba58e83932a (diff) | |
download | openshift-36b7f1bb7b036d619f224594c4fc08ed2b434a80.tar.gz openshift-36b7f1bb7b036d619f224594c4fc08ed2b434a80.tar.bz2 openshift-36b7f1bb7b036d619f224594c4fc08ed2b434a80.tar.xz openshift-36b7f1bb7b036d619f224594c4fc08ed2b434a80.zip |
Get rid of adjust.yml
Diffstat (limited to 'roles/openshift_excluder/tasks')
-rw-r--r-- | roles/openshift_excluder/tasks/adjust.yml | 25 | ||||
-rw-r--r-- | roles/openshift_excluder/tasks/disable.yml | 23 |
2 files changed, 21 insertions, 27 deletions
diff --git a/roles/openshift_excluder/tasks/adjust.yml b/roles/openshift_excluder/tasks/adjust.yml deleted file mode 100644 index c32cd6070..000000000 --- a/roles/openshift_excluder/tasks/adjust.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- -# Depending on enablement of individual excluders and their status -# some excluders needs to be disabled, resp. enabled -# By default, all excluders are disabled unless overrided. -- block: - - include: init.yml - # All excluders that are to be enabled are enabled - - include: exclude.yml - vars: - # Enable the docker excluder only if it is overrided - # BZ #1430612: docker excluders should be enabled even during installation and upgrade - exclude_docker_excluder: "{{ docker_excluder_on | bool }}" - # excluder is to be disabled by default - exclude_openshift_excluder: false - # All excluders that are to be disabled are disabled - - include: unexclude.yml - vars: - # If the docker override is not set, default to the generic behaviour - # BZ #1430612: docker excluders should be enabled even during installation and upgrade - unexclude_docker_excluder: false - # disable openshift excluder is never overrided to be enabled - # disable it if the docker excluder is enabled - unexclude_openshift_excluder: true - when: - - not openshift.common.is_atomic | bool diff --git a/roles/openshift_excluder/tasks/disable.yml b/roles/openshift_excluder/tasks/disable.yml index 988cda166..e23496b3b 100644 --- a/roles/openshift_excluder/tasks/disable.yml +++ b/roles/openshift_excluder/tasks/disable.yml @@ -17,5 +17,24 @@ # it the docker excluder is enabled, we install it and in case its status is non-zero # it is enabled no matter what - # And finally adjust an excluder in order to update host components correctly -- include: adjust.yml +# And finally adjust an excluder in order to update host components correctly. First +# exclude then unexclude +- block: + - include: exclude.yml + vars: + # Enable the docker excluder only if it is overrided + # BZ #1430612: docker excluders should be enabled even during installation and upgrade + exclude_docker_excluder: "{{ docker_excluder_on | bool }}" + # excluder is to be disabled by default + exclude_openshift_excluder: false + # All excluders that are to be disabled are disabled + - include: unexclude.yml + vars: + # If the docker override is not set, default to the generic behaviour + # BZ #1430612: docker excluders should be enabled even during installation and upgrade + unexclude_docker_excluder: false + # disable openshift excluder is never overrided to be enabled + # disable it if the docker excluder is enabled + unexclude_openshift_excluder: true + when: + - not openshift.common.is_atomic | bool |