copr: move installation of node_exporter to copr base role

This commit is contained in:
Silvie Chlupova 2021-12-06 11:18:34 +01:00
parent 356dca4cc7
commit 22bf73ae9e
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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