telegraf: Allow package installer to create user
This commit is contained in:
parent
d82d2ef5cf
commit
099304e7e6
1 changed files with 6 additions and 5 deletions
|
@ -1,14 +1,15 @@
|
|||
---
|
||||
- name: Add telegraf to hostkey group
|
||||
ansible.builtin.user:
|
||||
name: _telegraf
|
||||
groups: hostkey
|
||||
|
||||
- name: Install packages
|
||||
ansible.builtin.package:
|
||||
name: telegraf
|
||||
state: installed
|
||||
|
||||
- name: Add telegraf to hostkey group
|
||||
ansible.builtin.user:
|
||||
name: _telegraf
|
||||
groups: hostkey
|
||||
append: true
|
||||
|
||||
- name: Create config
|
||||
ansible.builtin.template:
|
||||
dest: /etc/telegraf/telegraf.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue