DataDog / ansible-datadog

Ansible role for Datadog Agent
Apache License 2.0
297 stars 222 forks source link

Remove `warn` argument that is no longer available in newer Ansible #566

Closed alopezz closed 4 months ago

alopezz commented 4 months ago

Fixes #564. Any execution path that hit any of the affected commands would fail on Ansible 7 and above.

Further context can be found in https://github.com/ansible/ansible/blob/v2.11.0/changelogs/CHANGELOG-v2.11.rst#deprecated-features.

I don't foresee any harm, other than possibly users on very old Ansible versions starting to see a warning about the existence of a module that could be used instead of some explicit command.

Note: I've tested this manually. I intend to follow this up with adding newer Ansible versions to the test matrices that we have, but that's gonna take a little bit more time and I'd rather put out this fix as soon as we can.