diff --git a/roles/upgrade/tasks/main.yml b/roles/upgrade/tasks/main.yml index 888fcde8dab88b0cf006055b9622ada40863eb7d..1cca04eddd9fd1c0a738e8750c3b9141878965c1 100644 --- a/roles/upgrade/tasks/main.yml +++ b/roles/upgrade/tasks/main.yml @@ -4,7 +4,7 @@ register: uname_r_output check_mode: no changed_when: False - + - name: remove conflicting packages if kernel is going to changed block: - name: see if we have a lustre-client service or not @@ -13,7 +13,7 @@ changed_when: False failed_when: '"could not" in lustreStatus.stderr' ignore_errors: yes - + - name: stop lustre service: name=lustre-client state=stopped become: true @@ -63,7 +63,7 @@ name: '*' state: latest update_cache: yes - exclude: kernel*,mlnx-ofa_kernel*,kmod-lustre-client*,kmod-mlnx-ofa_kernel + exclude: kernel*,mlnx-ofa_kernel*,kmod-lustre-client*,kmod-mlnx-ofa_kernel*,kmod-lustre-client*,lustre-client* disablerepo: "{{ yumdisablerepo|join(',') }}" enablerepo: "{{ yumenablerepo|join(',') }}" become: true @@ -75,7 +75,7 @@ name: '*' state: latest update_cache: yes - exclude: kernel*,mlnx-ofa_kernel*,kmod-lustre-client*,kmod-mlnx-ofa_kernel + exclude: kernel*,mlnx-ofa_kernel*,kmod-lustre-client*,kmod-mlnx-ofa_kernel*,kmod-lustre-client*,lustre-client* become: true become_user: root when: ansible_os_family=="RedHat" and yumdisablerepo is undefined