homeserver/playbooks/3_service/munin.yml
2024-08-12 12:44:55 +02:00

27 lines
647 B
YAML

---
- hosts: munin
roles:
- role: ansible-role-apache
tags: "apache"
become: true
- role: ansible-role-munin
tags: "munin"
become: true
post_tasks:
- name: ensure vhost symlink exists
become: true
ansible.builtin.file:
src: /var/cache/munin/www
dest: /var/www/html/munin.mgrote.net
owner: root
group: root
state: link
- name: ensure apache.conf symlink exists
become: true
ansible.builtin.file:
src: /etc/munin/apache24.conf
dest: /var/www/html/munin.mgrote.net
owner: root
group: root
state: link