280ac8dbda
Latest versions of CentOS and RHEL already have YUM deprecated and future versions would drop support. This commit moves browbeat to use the package module instead of yum. Package module will select DNF if it is available on the system rather than yum. Change-Id: I5892fd6209e3be7f3cb69bcfe3df54726043354a
34 lines
631 B
YAML
34 lines
631 B
YAML
---
|
|
- name: Install StatsD
|
|
package:
|
|
name: statsd
|
|
state: present
|
|
become: True
|
|
|
|
- name: Create StatsD configuration folder
|
|
file:
|
|
path: /etc/statsd
|
|
state: directory
|
|
become: True
|
|
|
|
- name: Template configuration
|
|
template:
|
|
src: statsd_config.js.j2
|
|
dest: /etc/statsd/config.js
|
|
become: True
|
|
|
|
- name: Template StatsD service file
|
|
template:
|
|
src: statsd.service.j2
|
|
dest: /etc/systemd/system/statsd.service.j2
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
become: True
|
|
|
|
- name: bounce systemd and setup StatsD to run on startup
|
|
systemd:
|
|
name: statsd
|
|
enabled: yes
|
|
state: restarted
|