This commit is contained in:
Michael Grote 2024-08-12 13:00:45 +02:00
parent 725385600e
commit e6175f9b46
2 changed files with 10 additions and 3 deletions

View file

@ -10,6 +10,12 @@
src: /etc/munin/apache.conf
dest: /etc/apache2/sites-available/000-default.conf
- name: Template logrotate config
ansible.builtin.template:
src: logrotate
dest: /etc/logrotate.d/munin
- name: Ensure needed dirs exists
ansible.builtin.file:
path: "{{ item }}"
@ -31,11 +37,9 @@
mode: '0755'
loop: "{{ munin_server_plugins }}"
COPY run.sh /usr/local/bin/run
chmod +x /usr/local/bin/run
COPY logrotate-munin /etc/logrotate.d/munin
COPY logrotate-munin
COPY munin.conf /etc/munin/munin.conf
COPY munin-node.conf /etc/munin/munin-node.conf
COPY ssmtp.conf /etc/ssmtp/ssmtp.conf
@ -45,3 +49,6 @@ COPY munin_mail.conf /etc/munin/munin-conf.d/munin_mail.conf
# launcher
CMD ["/usr/local/bin/run"]
COPY run.sh /usr/local/bin/run
chmod +x /usr/local/bin/run