diff --git a/.travis.yml b/.travis.yml index 209521f..c6a1c43 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ env: install: # Install test dependencies. - - pip install molecule docker + - pip install molecule docker ansible script: # Run tests. diff --git a/LICENSE b/LICENSE index 5b410c8..a4a3d3b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,7 @@ MIT License Copyright (c) 2019 Agnesius Santo Naibaho +Copyright (c) 2021 L3D Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 3b0b546..3951c15 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Role Variables | variable | default | comment | |-------------------------------|-----------------------------------|-------------------------------| -| nginx_exporter_version | 0.3.0 | nginx exporter version | +| nginx_exporter_version | 0.9.0 | nginx exporter version | | nginx_exporter_nginx_plus | false | set true if use nginx plus | | nginx_exporter_listen_address | 0.0.0.0:9113 | nginx exporter listen address | | nginx_exporter_scrape_uri | | nginx status url | diff --git a/defaults/main.yml b/defaults/main.yml index e923646..db76b5c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,13 +1,13 @@ --- -nginx_exporter_version: 0.3.0 +nginx_exporter_version: '0.9.0' nginx_exporter_nginx_plus: false nginx_exporter_system_group: nginx-exp nginx_exporter_system_user: "{{ nginx_exporter_system_group }}" nginx_exporter_download_url: > - https://github.com/nginxinc/nginx-prometheus-exporter/releases/download/v{{ nginx_exporter_version }}/nginx-prometheus-exporter-{{ nginx_exporter_version }}-linux-{{ go_arch }}.tar.gz + https://github.com/nginxinc/nginx-prometheus-exporter/releases/download/v{{ nginx_exporter_version }}/nginx-prometheus-exporter_{{ nginx_exporter_version }}_linux_{{ go_arch }}.tar.gz nginx_exporter_listen_address: 0.0.0.0:9113 nginx_exporter_scrape_uri: http://127.0.0.1:8080/stub_status diff --git a/tasks/config.yml b/tasks/config.yml index 69f8961..e4e24a8 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -4,4 +4,5 @@ template: src: nginx_exporter.service.j2 dest: /etc/systemd/system/nginx_exporter.service + mode: '0644' notify: restart nginx_exporter