Commit bd56efea authored by Chris Croome's avatar Chris Croome

clone the contrib repo

parent 410e46d5
Pipeline #7721 passed with stage
in 20 seconds
......@@ -36,6 +36,7 @@ munin_plugins_enabled:
- name: df
- name: df_inode
- name: diskstats
- name: fail2ban
- name: forks
dir: /usr/lib/munin-c/plugins
file: munin-plugins-c
......
......@@ -62,6 +62,7 @@
- name: Tasks for specific plugins included
include_tasks: "{{ tasks }}"
loop:
- contrib.yml
- opcache.yml
- phpfpm.yml
- phpfpm_multi.yml
......@@ -93,103 +94,4 @@
loop_var: plugin
tags:
- munin
# - name: Set a fact for munin_nginx is it is not defined but Nginx is installed
# set_fact:
# munin_nginx: true
# when: ( munin_nginx is not defined ) and ( "nginx" in ansible_facts.packages )
# tags:
# - munin
#
# - name: Include Nginx tasks
# include_tasks: nginx.yml
# when: munin_nginx is defined
# tags:
# - munin
#
# - name: Set a fact for munin_apache is it is not defined but Apache is installed
# set_fact:
# munin_apache: true
# when: ( munin_apache is not defined ) and ( "apache2" in ansible_facts.packages )
# tags:
# - munin
#
# - name: Include Apache tasks
# include_tasks: apache.yml
# when: munin_apache is defined
# tags:
# - munin
#
# - name: Include PHP-FPM tasks
# include_tasks: phpfpm.yml
# when: munin_phpfpm is defined
# tags:
# - munin
#
# - name: MySQL / MariaDB checks
# block:
#
# - name: Check if mysql-server is installed
# shell: "dpkg -s mysql-server && echo PRESENT || echo ABSENT"
# register: munin_mysql_server
# tags:
# - munin
#
# - name: Check if mariadb-server is installed
# shell: "dpkg -s mariadb-server && echo PRESENT || echo ABSENT"
# register: munin_mariadb_server
# tags:
# - munin
#
# - name: Set a fact for munin_mysql is it is not defined but MySQL or MariaBD is installed
# set_fact:
# munin_mysql: true
# when: ( munin_mysql_server is defined and munin_mysql_server.stdout == "PRESENT" ) or ( munin_mariadb_server is defined and munin_mariadb_server.stdout == "PRESENT" )
# tags:
# - munin
#
# when: munin_mysql is not defined
#
# - name: Include MySQL tasks
# include_tasks: mysql.yml
# when: munin_mysql is defined
# tags:
# - munin
#
# - name: If users are defined
# block:
#
# - name: Include PHP-FPM multiuser tasks
# include_tasks: phpfpm_multi.yml
# when: munin_phpfpm_multi is defined
# tags:
# - munin
#
# when: ( users is defined ) and ( users != "" )
#
- name: Munin node config file present
template:
src: templates/munin-node.conf.j2
dest: /etc/munin/munin-node.conf
backup: true
register: munin_node_conf
tags:
- munin
- name: Munin plugin config file present
template:
src: templates/munin-node.j2
dest: /etc/munin/plugin-conf.d/munin-node
backup: true
register: munin_node_plugin_conf
tags:
- munin
- name: Munin node restarted
service:
name: munin-node
state: restarted
when: munin_node_packages.changed or munin_node_conf.changed or munin_node_plugin_conf.changed
tags:
- munin
...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment