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