Ubuntu1804-CIS icon indicating copy to clipboard operation
Ubuntu1804-CIS copied to clipboard

Ansible Error with 'follow' parameter in replace module

Open pyrodie18 opened this issue 4 years ago • 1 comments

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"}

`

pyrodie18 avatar Oct 08 '20 18:10 pyrodie18

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

liuyangc3 avatar Oct 09 '20 04:10 liuyangc3