Browse Source

Attempt to match version of excluders to target version

Scott Dodson 8 years ago
parent
commit
0dc62b7550

+ 1 - 1
playbooks/common/openshift-cluster/disable_excluder.yml

@@ -1,5 +1,5 @@
 ---
-- name: Record excluder state and disable
+- name: Disable excluders
   hosts: oo_masters_to_config:oo_nodes_to_config
   gather_facts: no
   tasks:

+ 2 - 2
roles/openshift_excluder/tasks/install.yml

@@ -6,14 +6,14 @@
 
   - name: Install docker excluder
     package:
-      name: "{{ openshift.common.service_type }}-docker-excluder"
+      name: "{{ openshift.common.service_type }}-docker-excluder{{ openshift_pkg_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) +  '*' }}"
       state: "{{ docker_excluder_package_state }}"
     when:
     - install_docker_excluder | default(true) | bool
 
   - name: Install openshift excluder
     package:
-      name: "{{ openshift.common.service_type }}-excluder"
+      name: "{{ openshift.common.service_type }}-excluder{{ openshift_pkg_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) + '*' }}"
       state: "{{ openshift_excluder_package_state }}"
     when:
     - install_openshift_excluder | default(true) | bool