Sai Sindhur Malleni 280ac8dbda Move away from yum
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
2018-10-11 19:28:35 +00:00

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