27 lines
521 B
YAML
27 lines
521 B
YAML
---
|
|
- name: install packages
|
|
package:
|
|
name: munin
|
|
state: installed
|
|
|
|
# for some reason this is owned by adm default
|
|
- name: fix log directory group
|
|
file:
|
|
path: /var/log/munin
|
|
state: directory
|
|
owner: munin
|
|
group: apache
|
|
|
|
- name: create apache config
|
|
copy:
|
|
dest: /etc/httpd/conf.local.d/munin.conf
|
|
src: munin-apache.conf
|
|
mode: 0644
|
|
owner: root
|
|
group: "{{ ansible_wheel }}"
|
|
notify: restart apache
|
|
|
|
- name: enable cron job
|
|
systemd:
|
|
name: munin.timer
|
|
enabled: true
|