florianutz / Ubuntu1804-CIS

Ubuntu CIS Hardening Ansible Role
MIT License
212 stars 128 forks source link

Ansible Error with 'follow' parameter in replace module #86

Open pyrodie18 opened 4 years ago

pyrodie18 commented 4 years ago

When running the tool, Ansible errors out every time it reaches a replace module that includes the 'follow' parameter. I am running this on 2.9 but a review of the documentation shows that this was removed in 2.5

` TASK [os-ansible-role-ubuntu1804-cis : SCORED | 4.1.1.3 | PATCH | Ensure auditing for processes that start prior to auditd is enabled] ** fatal: [172.29.225.151]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (replace) module: follow Supported parameters include: after, attributes, backup, before, encoding, group, mode, owner, path, regexp, replace, selevel, serole, setype, seuser, unsafe_writes, validate"}

`

liuyangc3 commented 4 years ago

@pyrodie18 I push a PR for this https://github.com/florianutz/Ubuntu1804-CIS/pull/84, you can try this PR, it works for me