Commit f6272a8b authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Enable not configuring nginx

parent dd43bbcd
---
zabbix_configure_webserver: yes
......@@ -59,27 +59,33 @@
- name: ensure an nginx config file is available
copy: src=zabbix.conf dest=/etc/nginx/sites-available/zabbix.conf
when: zabbix_configure_webserver
notify:
- restart nginx
tags:
- config
- zabbix
- nginx
- name: ensure the frontend is enabled in nginx
lineinfile: dest=/etc/nginx/sites-available/main line="include /etc/nginx/sites-available/zabbix.conf;" insertbefore="}"
when: zabbix_configure_webserver
notify:
- restart nginx
tags:
- config
- zabbix
- nginx
- name: ensure the frontend configuration file is installed
template: src=zabbix.conf.php.j2 dest=/etc/zabbix/web/zabbix.conf.php
when: zabbix_configure_webserver
notify:
- restart zabbix frontend
tags:
- config
- zabbix
- nginx
- name: ensure the database server listens on the external interface
replace: dest=/etc/postgresql/9.6/main/postgresql.conf regexp="#listen_addresses = 'localhost'" replace="listen_addresses = '*'"
......
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