Open willwen opened 11 months ago
Hi :wave: thanks for the issue report. You're absolutely right that this won't work on Ansible < 2.10. Unfortunately maintaining compatibility with these EOLed Ansible versions is becoming harder and harder and causes problems such as this one. I'm glad that you could upgrade and that fixes it for you. I'll leave this issue open for now and I'd encourage anyone with the same issue (who can't upgrade) to let us know here - that will help us gauge the urgency of fixing this.
This role needs a major (breaking) update to drop support for the unsupported ansible versions and support the newer ones fully. Like embracing FQCN. I am getting failures on Ansible 2.16.5, which is a supported version.
The Readme says ansible 2.6+ works with this datadog role. https://github.com/DataDog/ansible-datadog/blob/main/README.md?plain=1#L20
If you use 2.9, and try to do apm instrumentation, the argument
list_merge
here https://github.com/DataDog/ansible-datadog/blob/a6e34170dcbc003867198f783084988c29a9ef4a/tasks/apm-inject-check.yml#L73 was only introduced in ansible 2.10 https://github.com/ansible-community/ansible-build-data/blob/main/2.10/CHANGELOG-v2.10.rst#L4186The error you will get is:
Solution for me was to upgrade ansible