From a98b117032824b5fab7fcc9ff5243a3ac0963150 Mon Sep 17 00:00:00 2001 From: handreas <andreas.hamacher@monash.edu> Date: Fri, 20 Nov 2020 05:03:03 +0000 Subject: [PATCH] syntax bugfix --- roles/upgrade/tasks/main.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/roles/upgrade/tasks/main.yml b/roles/upgrade/tasks/main.yml index acb16f28..e841289d 100644 --- a/roles/upgrade/tasks/main.yml +++ b/roles/upgrade/tasks/main.yml @@ -68,11 +68,10 @@ name: '*' state: latest update_cache: yes - exclude: kernel*,mlnx-ofa_kernel*,kmod-lustre-client*,kmod-mlnx-ofa_kernel*,kmod-lustre-client*,lustre-client*,centos-release*, glusterfs* + exclude: kernel*,mlnx-ofa_kernel*,kmod-lustre-client*,kmod-mlnx-ofa_kernel*,kmod-lustre-client*,lustre-client*,centos-release*,glusterfs* become: true become_user: root - when: - - when: inventory_hostname in groups.ManagementNodes or inventory_hostname in groups.SQLNodes + when: ( inventory_hostname in groups.ManagementNodes ) or ( inventory_hostname in groups.SQLNodes ) - name: yum upgrade yum: @@ -82,8 +81,7 @@ exclude: kernel*,mlnx-ofa_kernel*,kmod-lustre-client*,kmod-mlnx-ofa_kernel*,kmod-lustre-client*,lustre-client*,centos-release* become: true become_user: root - when: - - when: inventory_hostname not in groups.ManagementNodes and inventory_hostname not in groups.SQLNodes + when: ( inventory_hostname not in groups.ManagementNodes ) and ( inventory_hostname not in groups.SQLNodes ) - name: Clear yum pending transaction command: yum-complete-transaction --cleanup-only -- GitLab