- name: 'Install 5 packages: munin, munin-node, munin-plugins-extra, libcgi-fast-perl, libapache2-mod-fcgid (debuntu)' package: name: - munin - munin-node - munin-plugins-extra - libcgi-fast-perl - libapache2-mod-fcgid state: present tags: - download when: is_debuntu | bool - name: "Install 2 packages: munin, munin-node (OS's other than debuntu)" package: name: - munin - munin-node state: present tags: - download when: not is_debuntu - name: Install /etc/munin/munin.conf and Apache's munin24.conf, from templates template: src: "{{ item.src }}" dest: "{{ item.dest }}" owner: root group: root mode: 0644 with_items: - { src: 'munin.conf.j2', dest: '/etc/munin/munin.conf' } - { src: 'munin24.conf.j2', dest: '/etc/{{ apache_config_dir }}/munin24.conf' } - name: Establish username/password Admin/changeme in /etc/munin/munin-htpasswd htpasswd: path: /etc/munin/munin-htpasswd name: Admin password: changeme create: yes state: present - name: Add 'munin_installed' variable values to {{ iiab_state_file }} lineinfile: dest: "{{ iiab_state_file }}" regexp: '^munin_installed' line: 'munin_installed: True' state: present