Skip to content
This repository was archived by the owner on Mar 9, 2024. It is now read-only.

Commit 4ff8128

Browse files
authored
fix user and group creation (#29)
[minor] release
1 parent e37d668 commit 4ff8128

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tasks/install.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
name: "{{ process_exporter_system_group }}"
1515
state: present
1616
system: true
17+
when:
18+
- process_exporter_system_group != "root"
1719

1820
- name: Create the process_exporter user
1921
user:
@@ -24,6 +26,8 @@
2426
system: true
2527
createhome: false
2628
home: /
29+
when:
30+
- process_exporter_system_user != "root"
2731

2832
- name: create prometheus data directory
2933
file:

0 commit comments

Comments
 (0)