Patrick Marchand
1c6fdbf85a
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
Will cause a hard fail in ansible 2.14, so better get rid of them now. There is no alternative, but the ansible warnings for those modules are not hard failures anyways.
38 lines
1,011 B
YAML
38 lines
1,011 B
YAML
---
|
|
- name: Add munin to hosts
|
|
lineinfile:
|
|
dest: /etc/hosts
|
|
regexp: 'munin$'
|
|
line: '127.0.0.1 munin'
|
|
insertafter: EOF
|
|
|
|
- name: Packages for Munin CGI are installed
|
|
apt:
|
|
name:
|
|
- liblwp-useragent-determined-perl
|
|
- libcgi-fast-perl
|
|
- spawn-fcgi
|
|
state: present
|
|
|
|
- name: Owner for munin-cgi is set to www-data:munin
|
|
shell: "chown --verbose www-data:munin /var/log/munin/munin-cgi-*"
|
|
register: command_result
|
|
changed_when: "'changed' in command_result.stdout"
|
|
|
|
- name: Mode for munin-cgi is set to 660
|
|
shell: "chmod --verbose 660 /var/log/munin/munin-cgi-*"
|
|
register: command_result
|
|
changed_when: "'changed' in command_result.stdout"
|
|
|
|
- name: Systemd unit for Munin-fcgi is installed
|
|
copy:
|
|
src: systemd/spawn-fcgi-munin-graph.service
|
|
dest: /etc/systemd/system/spawn-fcgi-munin-graph.service
|
|
|
|
- name: Systemd unit for Munin-fcgi is started
|
|
systemd:
|
|
name: spawn-fcgi-munin-graph
|
|
daemon_reload: yes
|
|
enabled: yes
|
|
state: started
|