2024-08-12 10:47:34 +02:00
|
|
|
---
|
|
|
|
- hosts: munin
|
|
|
|
roles:
|
2024-08-12 11:13:59 +02:00
|
|
|
- role: ansible-role-apache
|
|
|
|
tags: "apache"
|
2024-08-12 11:08:30 +02:00
|
|
|
become: true
|
2024-08-12 10:47:34 +02:00
|
|
|
- role: ansible-role-munin
|
|
|
|
tags: "munin"
|
|
|
|
become: true
|
2024-08-12 11:54:14 +02:00
|
|
|
post_tasks:
|
|
|
|
- name: ensure vhost symlink exists
|
2024-08-12 11:55:26 +02:00
|
|
|
become: true
|
2024-08-12 11:54:14 +02:00
|
|
|
ansible.builtin.file:
|
|
|
|
src: /var/cache/munin/www
|
2024-08-12 11:54:40 +02:00
|
|
|
dest: /var/www/html/munin.mgrote.net
|
2024-08-12 11:54:14 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
state: link
|
2024-08-12 12:44:55 +02:00
|
|
|
|
|
|
|
- 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
|