add new nginx config + change templates paths
This commit is contained in:
parent
db15b74b2d
commit
2ce73320df
1 changed files with 23 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
- name: '[Configure] - Configure Zabbix Server'
|
||||
template:
|
||||
src: 'templates/zabbix_server.conf.j2'
|
||||
src: 'templates/etc/zabbix/zabbix_server.conf.j2'
|
||||
dest: '/etc/zabbix/zabbix_server.conf'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
|
@ -10,14 +10,9 @@
|
|||
when: zabbix_server == 'true'
|
||||
notify: restart zabbix_server
|
||||
|
||||
- name: '[Configure] - Create Zabbix frontend Dir'
|
||||
file:
|
||||
path: '/etc/zabbix/web'
|
||||
state: 'directory'
|
||||
|
||||
- name: '[Configure] - Configure Zabbix Proxy'
|
||||
template:
|
||||
src: 'templates/zabbix_proxy.conf.j2'
|
||||
src: 'templates/etc/zabbix/zabbix_proxy.conf.j2'
|
||||
dest: '/etc/zabbix/zabbix_proxy.conf'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
|
@ -27,17 +22,36 @@
|
|||
|
||||
- name: '[Configure] - Configure Zabbix frontend'
|
||||
template:
|
||||
src: 'templates/zabbix.conf.php.j2'
|
||||
src: 'templates/etc/zabbix/web/zabbix.conf.php.j2'
|
||||
dest: '/etc/zabbix/web/zabbix.conf.php'
|
||||
owner: 'www-data'
|
||||
group: 'www-data'
|
||||
when: zabbix_server == 'true'
|
||||
notify: restart zabbix_server
|
||||
|
||||
- name: '[Configure] - Configure nginx'
|
||||
template:
|
||||
src: 'templates/etc/zabbix/nginx.conf.j2'
|
||||
dest: '/etc/zabbix/nginx.conf'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
when: zabbix_server == 'true'
|
||||
notify: restart zabbix_server
|
||||
|
||||
- name: '[Configure] - Configure Zabbix php'
|
||||
template:
|
||||
src: 'templates/etc/zabbix/php-fpm.conf.j2'
|
||||
dest: '/etc/zabbix/php-fpm.conf'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
mode: '0644'
|
||||
when: zabbix_server == 'true'
|
||||
notify: restart zabbix_server
|
||||
|
||||
- name: '[Configure] - Configure Zabbix Agent'
|
||||
template:
|
||||
src: 'templates/zabbix_agentd.conf.j2'
|
||||
src: 'templates/etc/zabbix/zabbix_agentd.conf.j2'
|
||||
dest: '/etc/zabbix/zabbix_agentd.conf'
|
||||
owner: 'root'
|
||||
group: 'root'
|
||||
|
|
Loading…
Reference in a new issue