# couldn't resolve module/action 'datadog\_checks'

**URL:** <https://forum.ansible.com/t/couldnt-resolve-module-action-datadog-checks/37200>\
**Category:** Ansible Project\
**Created:** [October 10, 2022, 10:08pm UTC](https://forum.ansible.com/t/couldnt-resolve-module-action-datadog-checks/37200 "2022-10-10T22:08:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clif\_Smith](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@Clif\_Smith](https://forum.ansible.com/u/Clif_Smith)\
**Post date:** [October 10, 2022, 10:08pm UTC](https://forum.ansible.com/t/couldnt-resolve-module-action-datadog-checks/37200/1 "2022-10-10T22:08:05Z")

</div>

I’m new to Ansible and am trying to use data from querying a postgres DB to write out a [Datadog agent config](https://docs.datadoghq.com/agent/basic_agent_usage/ansible/). I’ve figured out 1) how to retrieve the data from postgres and 2) write out a single static node’s agent config, but I haven’t figured out how to tie the two together. Any help would be GREATLY appreciated.

Here’s my code:

---

<div class="post-metadata">

**Author:** ![Clif\_Smith](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@Clif\_Smith](https://forum.ansible.com/u/Clif_Smith)\
**Post date:** [October 11, 2022, 1:47am UTC](https://forum.ansible.com/t/couldnt-resolve-module-action-datadog-checks/37200/2 "2022-10-11T01:47:58Z")

</div>

The issue was I was misunderstanding the configuration for the Datadog agent was using a role and I was trying to use its vars as a task.
