ansible-zabbix-web
ansible-zabbix-web copied to clipboard
role shouldn't always remove conf-xxx/zabbix.conf on Debian
Describe the bug
Role always remove default /etc/apache2/conf-available/zabbix.conf
config on Debian
even user do not want to install vhost for zabbix
Installation method/version
- Github / latest
Ansible Version
2.8
Targetted hosts
- Ubuntu
- Debian
Expected behavior
Role should not remove default conf-xxx/Zabbix.conf
when User do not want to install vhost conf
Possible solution
--- apache_Debian_old.yml Thu Jun 25 09:29:00 2019
+++ apache_Debian.yml Wed Jun 26 15:19:40 2019
@@ -27,6 +27,7 @@
file:
path: "{{ item }}"
state: absent
+ when: zabbix_vhost
with_items:
- /etc/apache2/conf-available/zabbix.conf
- /etc/apache2/conf-enabled/zabbix.conf
but may be the role configuration should be like
zabbix_apache_config_style: vhost | conf | skip