1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- name: "[Alpine] Install package: influxdb"
apk:
name: influxdb
state: present
when:
- ansible_distribution == "Alpine"
- name: "[Archlinux] Install package: influxdb"
pacman:
name:
- influxdb
- python-requests
- python-influxdb
state: present
when:
- ansible_distribution == "Archlinux"
- name: "Create directory: /etc/systemd/system/influxdb.service.d"
file:
state: directory
dest: /etc/systemd/system/influxdb.service.d
mode: 0755
when:
- ansible_service_mgr == "systemd"
- name: Create systemd.service override for influxdb
copy:
src: service-override.conf
dest: /etc/systemd/system/influxdb.service.d/override.conf
mode: 0755
when:
- ansible_service_mgr == "systemd"