Browse Source

unexclude excluder if it is to be upgraded and already installed

Jan Chaloupka 8 years ago
parent
commit
96276a3865
1 changed files with 8 additions and 0 deletions
  1. 8 0
      roles/openshift_excluder/tasks/disable.yml

+ 8 - 0
roles/openshift_excluder/tasks/disable.yml

@@ -4,6 +4,14 @@
 # - docker_excluder_package_state
 - include: init.yml
 
+# unexclude the current openshift/origin-excluder if it is installed so it can be updated
+- include: unexclude.yml
+  vars:
+    unexclude_docker_excluder: false
+    unexclude_openshift_excluder: "{{ openshift_excluder_on | bool }}"
+  when:
+  - not openshift.common.is_atomic | bool
+
 # Install any excluder that is enabled
 - include: install.yml
   vars: