|
@@ -47,25 +47,25 @@
|
|
template: src=munin/nginx_vhost.j2 dest=/etc/nginx/sites-available/munin owner=root group=root mode=0644
|
|
template: src=munin/nginx_vhost.j2 dest=/etc/nginx/sites-available/munin owner=root group=root mode=0644
|
|
notify:
|
|
notify:
|
|
- Reload nginx for munin
|
|
- Reload nginx for munin
|
|
- when: with_munin and with_nginx
|
|
|
|
|
|
+ when: with_munin and with_nginx is defined and with_nginx
|
|
|
|
|
|
- name: Install nginx virtual host for munin (sites-enabled)
|
|
- name: Install nginx virtual host for munin (sites-enabled)
|
|
file: src=/etc/nginx/sites-available/munin path=/etc/nginx/sites-enabled/munin state=link
|
|
file: src=/etc/nginx/sites-available/munin path=/etc/nginx/sites-enabled/munin state=link
|
|
notify:
|
|
notify:
|
|
- Reload nginx for munin
|
|
- Reload nginx for munin
|
|
- when: with_munin and with_nginx
|
|
|
|
|
|
+ when: with_munin and with_nginx is defined and with_nginx
|
|
|
|
|
|
- name: Install apache2 virtual host for munin (sites-available)
|
|
- name: Install apache2 virtual host for munin (sites-available)
|
|
template: src=munin/apache2_vhost.j2 dest=/etc/apache2/sites-available/munin owner=root group=root mode=0644
|
|
template: src=munin/apache2_vhost.j2 dest=/etc/apache2/sites-available/munin owner=root group=root mode=0644
|
|
notify:
|
|
notify:
|
|
- Reload apache2 for munin
|
|
- Reload apache2 for munin
|
|
- when: with_munin and with_apache2
|
|
|
|
|
|
+ when: with_munin and with_apache2 is defined and with_apache2
|
|
|
|
|
|
- name: Install apache2 virtual host for munin (sites-enabled)
|
|
- name: Install apache2 virtual host for munin (sites-enabled)
|
|
file: src=/etc/apache2/sites-available/munin path=/etc/apache2/sites-enabled/munin state=link
|
|
file: src=/etc/apache2/sites-available/munin path=/etc/apache2/sites-enabled/munin state=link
|
|
notify:
|
|
notify:
|
|
- Reload apache2 for munin
|
|
- Reload apache2 for munin
|
|
- when: with_munin and with_apache2
|
|
|
|
|
|
+ when: with_munin and with_apache2 is defined and with_apache2
|
|
|
|
|
|
- name: Ensure munin-node is running
|
|
- name: Ensure munin-node is running
|
|
service: name=munin-node state=started
|
|
service: name=munin-node state=started
|