@@ -33,6 +33,10 @@ Role Variables
3333Agent 6 (beta)
3434--------------
3535
36+ This role includes experimental support of the beta versions of Datadog Agent 6.0 on apt-based platforms.
37+ See below for usage. General information on the Datadog Agent 6 is available in the
38+ [ datadog-agent] ( https://github.com/DataDog/datadog-agent/ ) repo.
39+
3640To upgrade or install agent6, you need to:
3741
3842- set ` datadog_agent6 ` to true
5660
5761Example Playbooks
5862-------------------------
59- ```
63+ ``` yml
6064- hosts : servers
6165 roles :
6266 - { role: Datadog.datadog, become: yes } # On Ansible < 1.9, use `sudo: yes` instead of `become: yes`
@@ -104,12 +108,33 @@ Example Playbooks
104108 - instance:bar
105109` ` `
106110
107- ```
111+ ` ` ` yml
108112- hosts : servers
109113 roles :
110114 - { role: Datadog.datadog, become: yes, datadog_api_key: "mykey" } # On Ansible < 1.9, use `sudo: yes` instead of `become: yes`
111115` ` `
112116
117+ Known Issues and Workarounds
118+ ----------------------------
119+
120+ On Debian Stretch, the ` apt_key` module that the role uses requires an additional system dependency to work correctly.
121+ Unfortunately that dependency (`dirmngr`) is not provided by the module. To work around this, you can add the following
122+ to the playbooks that make use of the present role :
123+
124+ ` ` ` yml
125+ ---
126+ - hosts: all
127+ pre_tasks:
128+ - name: Debian Stretch requires dirmngr package to be installed in order to use apt_key
129+ become: yes # On Ansible < 1.9, use ` sudo: yes` instead of `become: yes`
130+ apt :
131+ name : dirmngr
132+ state : present
133+
134+ roles :
135+ - { role: Datadog.datadog, become: yes, datadog_api_key: "mykey" } # On Ansible < 1.9, use `sudo: yes` instead of `become: yes`
136+ ` ` `
137+
113138License
114139-------
115140
0 commit comments