Jérémy Lecour
ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2777|524|2253|2462|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Fully Qualified Collection Name
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
---
|
|
- name: Add munin to hosts
|
|
ansible.builtin.lineinfile:
|
|
dest: /etc/hosts
|
|
regexp: 'munin$'
|
|
line: '127.0.0.1 munin'
|
|
insertafter: EOF
|
|
|
|
- name: Packages for Munin CGI are installed
|
|
ansible.builtin.apt:
|
|
name:
|
|
- liblwp-useragent-determined-perl
|
|
- libcgi-fast-perl
|
|
- spawn-fcgi
|
|
state: present
|
|
|
|
- name: Owner for munin-cgi is set to www-data:munin
|
|
ansible.builtin.shell:
|
|
cmd: "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
|
|
ansible.builtin.shell:
|
|
cmd: "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
|
|
ansible.builtin.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
|
|
ansible.builtin.systemd:
|
|
name: spawn-fcgi-munin-graph
|
|
daemon_reload: yes
|
|
enabled: yes
|
|
state: started
|