--- - name: ensure packages are installed become: true ansible.builtin.package: name: "{{ munin_packages }}" state: present - name: Template apache config ansible.builtin.template: 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 }}" state: directory mode: '0755' owner: munin group: munin loop: "{{ munin_dirs }}" # (chfn -f 'munin' root) ??? TODO - name: Enable fgcid ansible.builtin.command: /usr/sbin/a2enmod fcgid # TODO CHANGED/when - name: Template munin-server plugins ansible.builtin.template: src: "{{ item }}" dest: "/etc/munin/plugins/{{ item }}" mode: '0755' loop: "{{ munin_server_plugins }}" 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 COPY revaliases /etc/ssmtp/revaliases 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