influxdb: Fix uid and gid for influxdb user
This commit is contained in:
parent
e120d2020c
commit
9b3e8bbaaa
1 changed files with 18 additions and 1 deletions
|
@ -8,6 +8,23 @@
|
|||
gpgkey: https://repos.influxdata.com/influxdb.key
|
||||
enabled: true
|
||||
|
||||
- name: Create group influxdb
|
||||
ansible.builtin.group:
|
||||
name: influxdb
|
||||
gid: 301
|
||||
system: true
|
||||
|
||||
- name: Create user influxdb
|
||||
ansible.builtin.user:
|
||||
name: influxdb
|
||||
comment: Service InfluxDB
|
||||
createhome: false
|
||||
group: influxdb
|
||||
home: /var/empty
|
||||
shell: /sbin/nologin
|
||||
system: true
|
||||
uid: 301
|
||||
|
||||
- name: Install packages
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
|
@ -29,7 +46,7 @@
|
|||
ansible.builtin.file:
|
||||
path: /export/influxdb
|
||||
state: directory
|
||||
mode: 0755
|
||||
mode: 0750
|
||||
owner: influxdb
|
||||
group: influxdb
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue