1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@
- name: Make sure OpenLDAP service is stopped - name: Make sure OpenLDAP service is stopped
become: True 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 - name: Debconf
shell: 'echo "slapd {{ item.question }} {{ item.vtype }} {{ item.value }}" >> /root/debconf-slapd.conf' shell: 'echo "slapd {{ item.question }} {{ item.vtype }} {{ item.value }}" >> /root/debconf-slapd.conf'