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

Commit

Permalink
fix user and group creation (#29)
Browse files Browse the repository at this point in the history
[minor] release
  • Loading branch information
tombokombo authored Oct 19, 2020
1 parent e37d668 commit 4ff8128
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
name: "{{ process_exporter_system_group }}"
state: present
system: true
when:
- process_exporter_system_group != "root"

- name: Create the process_exporter user
user:
Expand All @@ -24,6 +26,8 @@
system: true
createhome: false
home: /
when:
- process_exporter_system_user != "root"

- name: create prometheus data directory
file:
Expand Down

0 comments on commit 4ff8128

Please sign in to comment.