Skip to content

Commit

Permalink
Merge pull request #5 from brunoleon/not_manage_root
Browse files Browse the repository at this point in the history
do not attempt to manage running user if it is root
  • Loading branch information
kevincoakley authored Apr 20, 2018
2 parents ea31032 + 2ca63e4 commit c75fb47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
groups: "{{ prometheus_node_exporter_service_group }}"
append: yes
shell: /bin/bash
when: prometheus_node_exporter_manage_user == True

#
# Install Prometheus Node Exporter
Expand Down

0 comments on commit c75fb47

Please sign in to comment.