From 2e522d2ce2c8f66ea3057bd36be139a555692b9d Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Sat, 5 Mar 2022 14:28:21 +0100 Subject: [PATCH] Avoid failing with grep --- roles/libvirt/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/libvirt/tasks/main.yml b/roles/libvirt/tasks/main.yml index e903936..630e9b9 100644 --- a/roles/libvirt/tasks/main.yml +++ b/roles/libvirt/tasks/main.yml @@ -24,6 +24,7 @@ - name: Check if 'libvirt libvirt_guest' is in /etc/nsswitch.conf command: grep -c 'libvirt libvirt_guest' /etc/nsswitch.conf register: presence + ignore_errors: true changed_when: presence.stdout == '0' - name: Put 'libvirt libvirt_guest' in /etc/nsswitch.conf