replace ignore_errors to failed_when to supress ugly error warnings for 'remove suid/sgid' task

This commit is contained in:
fitz123 2016-05-19 23:56:14 +07:00
parent 87778593d0
commit 8ebc97c130

View file

@ -1,7 +1,7 @@
---
- name: remove suid/sgid bit from binaries in blacklist
file: path='{{item}}' mode='a-s' state=file follow=yes
ignore_errors: true
failed_when: false
with_items:
- '{{ os_security_suid_sgid_system_blacklist }}'
- '{{ os_security_suid_sgid_blacklist }}'