--- # tasks file for munin-node - name: Installation munin-node apt: pkg: - munin-node ignore_errors: yes - name: fix munin-node.service for LXC template: src: munin-node.service.j2 dest: /lib/systemd/system/munin-node.service mode: '0777' backup: yes when: - "ansible_facts['virtualization_type'] == 'lxc'" - "ansible_facts['distribution'] == 'Debian'" - "ansible_facts['distribution_release'] == 'buster'" - name: copy munin-node.conf template: src: munin-node.conf.j2 dest: /etc/munin/munin-node.conf backup: yes notify: restart munin-node - name: enable munin-node service systemd: name: munin-node enabled: yes