Skip to content

Commit

Permalink
Merge pull request #7 from kevincoakley/0.17.0
Browse files Browse the repository at this point in the history
0.17.0
  • Loading branch information
kevincoakley authored Feb 14, 2019
2 parents 889bd37 + 701aa62 commit 048f60c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ansible-role-prometheus-node-exporter

[![Build Status](https://travis-ci.org/kevincoakley/ansible-role-prometheus-node-exporter.svg?branch=master)](https://travis-ci.org/kevincoakley/ansible-role-prometheus-node-exporter)

Install Prometheus Node Exporter - https://github.com/prometheus/node_exporter . Tested with CentOS 7 and Ubuntu 16.04
Install Prometheus Node Exporter - https://github.com/prometheus/node_exporter . Tested with CentOS 7 and Ubuntu 18.04

Use role release >= 0.15.0 on node_exporter versions >= 0.15.0. Use role release <= 0.14.0 on node_exporter versions <= 0.14.0

Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
prometheus_node_exporter_version: 0.16.0
prometheus_node_exporter_version: 0.17.0
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
Expand Down
3 changes: 2 additions & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ galaxy_info:
- name: Ubuntu
versions:
- xenial
- bionic
#
# Below are all categories currently available. Just as with
# the platforms above, uncomment those that apply to your role.
#
categories:
galaxy_tags:
- monitoring
dependencies: []
# List your role dependencies here, one per line.
Expand Down
8 changes: 4 additions & 4 deletions 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_manage_user == True
when: prometheus_node_exporter_manage_user

#
# Install Prometheus Node Exporter
Expand All @@ -25,7 +25,7 @@
get_url:
url: "{{ prometheus_node_exporter_download_url }}"
dest: "/tmp/node_exporter-{{ prometheus_node_exporter_version }}.tar.gz"
when: prometheus_node_exporter_install_path.stat.exists == False
when: not prometheus_node_exporter_install_path.stat.exists

- name: Extract Node Exporter into the install directory
unarchive:
Expand All @@ -34,7 +34,7 @@
copy: no
owner: "{{ prometheus_node_exporter_service_username }}"
group: "{{ prometheus_node_exporter_service_group }}"
when: prometheus_node_exporter_install_path.stat.exists == False
when: not prometheus_node_exporter_install_path.stat.exists

- name: Create a symlink for /opt/node_exporter
file:
Expand All @@ -43,7 +43,7 @@
owner: "{{ prometheus_node_exporter_service_username }}"
group: "{{ prometheus_node_exporter_service_group }}"
state: link
when: prometheus_node_exporter_install_path.stat.exists == False
when: not prometheus_node_exporter_install_path.stat.exists

- name: Copy the Node Exporter systemd service file
template:
Expand Down

0 comments on commit 048f60c

Please sign in to comment.