24 lines
515 B
YAML
24 lines
515 B
YAML
---
|
|
- name: include OS-specific variables
|
|
include_vars: "{{ ansible_os_family }}.yml"
|
|
|
|
- name: install packages
|
|
package:
|
|
name: "{{ item }}"
|
|
state: installed
|
|
with_items: "{{ munin_node_packages }}"
|
|
|
|
- name: create config
|
|
template:
|
|
dest: /etc/munin/munin-node.conf
|
|
src: munin-node.conf.j2
|
|
mode: 0644
|
|
owner: root
|
|
group: "{{ ansible_wheel }}"
|
|
notify: munin-node configure
|
|
|
|
- name: enable service
|
|
service:
|
|
name: "{{ munin_node_service }}"
|
|
state: started
|
|
enabled: true
|