Skip to content

Commit

Permalink
add a variable to allow choosing whether prometheus user is managed o…
Browse files Browse the repository at this point in the history
…r not
  • Loading branch information
brunoleon committed Apr 20, 2018
1 parent 04ebd4b commit 2ca63e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
prometheus_node_exporter_version: 0.15.2
prometheus_node_exporter_download_url: https://github.com/prometheus/node_exporter/releases/download/v{{ prometheus_node_exporter_version }}/node_exporter-{{ prometheus_node_exporter_version }}.linux-amd64.tar.gz
prometheus_node_exporter_manage_user: True
prometheus_node_exporter_service_username: node-exp
prometheus_node_exporter_service_group: node-exp

Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
groups: "{{ prometheus_node_exporter_service_group }}"
append: yes
shell: /bin/bash
when: prometheus_node_exporter_service_username != 'root'
when: prometheus_node_exporter_manage_user == True

#
# Install Prometheus Node Exporter
Expand Down

0 comments on commit 2ca63e4

Please sign in to comment.