|
@@ -8,8 +8,10 @@
|
|
|
|
|
|
# TODO: If the sdn package isn't already installed this will install it, we
|
|
# TODO: If the sdn package isn't already installed this will install it, we
|
|
# should fix that
|
|
# should fix that
|
|
-- name: Upgrade master packages
|
|
|
|
- package: name={{ master_pkgs | join(',') }} state=present
|
|
|
|
|
|
+- name: Upgrade master packages - yum
|
|
|
|
+ command:
|
|
|
|
+ yum install -y {{ master_pkgs | join(' ') }} \
|
|
|
|
+ {{ ' --exclude *' ~ openshift_service_type ~ '*3.9*' if openshift_release | version_compare('3.9','<') else '' }}
|
|
vars:
|
|
vars:
|
|
master_pkgs:
|
|
master_pkgs:
|
|
- "{{ openshift_service_type }}{{ openshift_pkg_version | default('') }}"
|
|
- "{{ openshift_service_type }}{{ openshift_pkg_version | default('') }}"
|
|
@@ -19,3 +21,20 @@
|
|
- "{{ openshift_service_type }}-clients{{ openshift_pkg_version | default('') }}"
|
|
- "{{ openshift_service_type }}-clients{{ openshift_pkg_version | default('') }}"
|
|
register: result
|
|
register: result
|
|
until: result is succeeded
|
|
until: result is succeeded
|
|
|
|
+ when: ansible_pkg_mgr == 'yum'
|
|
|
|
+
|
|
|
|
+- name: Upgrade master packages - dnf
|
|
|
|
+ dnf:
|
|
|
|
+ name: "{{ master_pkgs | join(',') }}"
|
|
|
|
+ state: present
|
|
|
|
+ vars:
|
|
|
|
+ master_pkgs:
|
|
|
|
+ - "{{ openshift_service_type }}{{ openshift_pkg_version }}"
|
|
|
|
+ - "{{ openshift_service_type }}-master{{ openshift_pkg_version }}"
|
|
|
|
+ - "{{ openshift_service_type }}-node{{ openshift_pkg_version }}"
|
|
|
|
+ - "{{ openshift_service_type }}-sdn-ovs{{ openshift_pkg_version }}"
|
|
|
|
+ - "{{ openshift_service_type }}-clients{{ openshift_pkg_version }}"
|
|
|
|
+ - "tuned-profiles-{{ openshift_service_type }}-node{{ openshift_pkg_version }}"
|
|
|
|
+ register: result
|
|
|
|
+ until: result is succeeded
|
|
|
|
+ when: ansible_pkg_mgr == 'dnf'
|