diff --git a/roles/mgrote_munin_server/tasks/main.yml b/roles/mgrote_munin_server/tasks/main.yml index ece4e4d3..7a03a920 100644 --- a/roles/mgrote_munin_server/tasks/main.yml +++ b/roles/mgrote_munin_server/tasks/main.yml @@ -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 diff --git a/roles/mgrote_munin_server/templates/logrotate-munin b/roles/mgrote_munin_server/templates/logrotate similarity index 100% rename from roles/mgrote_munin_server/templates/logrotate-munin rename to roles/mgrote_munin_server/templates/logrotate