threatstack / threatstack-ansible

Ansible for installing Threatstack Agent
https://www.threatstack.com
MIT License
23 stars 17 forks source link

Remove warn argument from disable_auditd.yml #91

Closed kylezielinski-drizly closed 1 month ago

kylezielinski-drizly commented 1 year ago

This PR removes the references to args.warn in disable_auditd.yml. As discussed in this stackoverflow, the warn parameter for shell was deprecated in Ansible 2.11 and removed in Ansible 2.14.

When run with Ansible >= 2.14, the playbook currently errors out with the following message:

fatal: [default]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (ansible.legacy.command) module: warn. Supported parameters include: _raw_params, _uses_shell, argv, chdir, creates, executable, removes, stdin, stdin_add_newline, strip_empty_ends."}

After applying this patch, the playbook executes without error on Ubuntu 20.04 and Amazon Linux 2 with Ansible 2.14.9.