copr: move installation of node_exporter to copr base role
This commit is contained in:
parent
356dca4cc7
commit
22bf73ae9e
2 changed files with 8 additions and 2 deletions
|
@ -49,6 +49,11 @@
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
- name: install node_exporter
|
||||||
|
dnf: state=latest pkg=golang-github-prometheus-node-exporter
|
||||||
|
tags:
|
||||||
|
- packages
|
||||||
|
|
||||||
- name: install dev helper packages
|
- name: install dev helper packages
|
||||||
dnf:
|
dnf:
|
||||||
state: present
|
state: present
|
||||||
|
@ -109,5 +114,8 @@
|
||||||
when: aws_ipv6_addr is defined
|
when: aws_ipv6_addr is defined
|
||||||
tags: ipv6_config
|
tags: ipv6_config
|
||||||
|
|
||||||
|
- name: start node exporter
|
||||||
|
service: state=started enabled=yes name=node_exporter
|
||||||
|
|
||||||
# - name: enable and run logrotate service
|
# - name: enable and run logrotate service
|
||||||
# service: name="logrotate" state=started
|
# service: name="logrotate" state=started
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
- rdiff-backup
|
- rdiff-backup
|
||||||
- scl-utils-build
|
- scl-utils-build
|
||||||
- tmpwatch
|
- tmpwatch
|
||||||
- golang-github-prometheus-node-exporter
|
|
||||||
|
|
||||||
- name: install latest dist-git and copr-dist-git
|
- name: install latest dist-git and copr-dist-git
|
||||||
dnf:
|
dnf:
|
||||||
|
@ -105,7 +104,6 @@
|
||||||
- "httpd"
|
- "httpd"
|
||||||
- "dist-git.socket"
|
- "dist-git.socket"
|
||||||
- "copr-dist-git"
|
- "copr-dist-git"
|
||||||
- "node_exporter"
|
|
||||||
when: not services_disabled|bool
|
when: not services_disabled|bool
|
||||||
|
|
||||||
- name: create place for our custom SELinux policy
|
- name: create place for our custom SELinux policy
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue