diff --git a/defaults/main.yml b/defaults/main.yml index 9bdefbb..012252b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index 7f16ecc..05d417b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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