Use 'xargs -r' in pipe, instead of plain 'xargs' (#383)

This commit is contained in:
Anatoly Pugachev
2020-05-20 13:59:35 +03:00
committed by GitHub
parent 7b2ad8a80c
commit b41b46593e

View File

@@ -24,7 +24,7 @@
- name: Make sure OpenLDAP service is stopped
become: True
shell: 'cat /var/run/slapd/slapd.pid | xargs kill -9 '
shell: 'cat /var/run/slapd/slapd.pid | xargs -r kill -9 '
- name: Debconf
shell: 'echo "slapd {{ item.question }} {{ item.vtype }} {{ item.value }}" >> /root/debconf-slapd.conf'