1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Cleaner munin/tasks/install.yml

This commit is contained in:
A Holt 2020-01-13 18:57:54 -05:00 committed by GitHub
parent d7e9749de9
commit 9c26e934f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,8 +7,7 @@
- libcgi-fast-perl - libcgi-fast-perl
- libapache2-mod-fcgid - libapache2-mod-fcgid
state: present state: present
tags: #tags: download
- download
when: is_debuntu | bool when: is_debuntu | bool
- name: "Install 2 packages: munin, munin-node (OS's other than debuntu)" - name: "Install 2 packages: munin, munin-node (OS's other than debuntu)"
@ -17,17 +16,16 @@
- munin - munin
- munin-node - munin-node
state: present state: present
tags: #tags: download
- download
when: not is_debuntu when: not is_debuntu
- name: Install /etc/munin/munin.conf and Apache's munin24.conf, from templates - name: Install /etc/munin/munin.conf and Apache's munin24.conf, from templates
template: template:
src: "{{ item.src }}" src: "{{ item.src }}"
dest: "{{ item.dest }}" dest: "{{ item.dest }}"
owner: root # owner: root
group: root # group: root
mode: 0644 # mode: 0644
with_items: with_items:
- { src: 'munin.conf.j2', dest: '/etc/munin/munin.conf' } - { src: 'munin.conf.j2', dest: '/etc/munin/munin.conf' }
- { src: 'munin24.conf.j2', dest: '/etc/{{ apache_config_dir }}/munin24.conf' } - { src: 'munin24.conf.j2', dest: '/etc/{{ apache_config_dir }}/munin24.conf' }
@ -37,8 +35,6 @@
path: /etc/munin/munin-htpasswd path: /etc/munin/munin-htpasswd
name: Admin name: Admin
password: changeme password: changeme
create: yes
state: present
- name: "Add 'munin_installed: True' to {{ iiab_state_file }}" - name: "Add 'munin_installed: True' to {{ iiab_state_file }}"
lineinfile: lineinfile: