Avoid failing with grep

This commit is contained in:
flyingscorpio@clevo 2022-03-05 14:28:21 +01:00
parent ebbc0ad3ec
commit 2e522d2ce2

View file

@ -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