See example in DataDog/dd-agent#3227
The datadog.conf file should be formatted as an INI file instead of YAML here: https://github.com/DataDog/ansible-datadog/blob/1.2.0/templates/datadog.conf.j2#L17
cc @pahaz who reported the issue in the linked issue