We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e22b471 commit f32ed85Copy full SHA for f32ed85
playbooks/roles/telegraf/tasks/el.yml
@@ -20,12 +20,16 @@
20
become: true
21
pip:
22
name: influxdb
23
+ executable: pip-3
24
25
- name: Create database
- influxdb_database:
26
- hostname: "{{ hostvars[groups['bastion'][0]]['ansible_fqdn'] }}"
27
- database_name: "telegraf"
28
- run_once: true
+ shell: "python3 -c \"import influxdb; influxdb.InfluxDBClient(host='{{ hostvars[groups['bastion'][0]]['ansible_fqdn'] }}', port=8086).create_database('telegraph')\""
+
+#- name: Create database
29
+# influxdb_database:
30
+# hostname: "{{ hostvars[groups['bastion'][0]]['ansible_fqdn'] }}"
31
+# database_name: "telegraf"
32
+# run_once: true
33
34
- name: Install telegraf
35
vars:
0 commit comments