Skip to content
This repository has been archived by the owner on May 23, 2020. It is now read-only.

role shouldn't always remove conf-xxx/zabbix.conf on Debian #61

Open
MVKozlov opened this issue Jun 27, 2019 · 0 comments
Open

role shouldn't always remove conf-xxx/zabbix.conf on Debian #61

MVKozlov opened this issue Jun 27, 2019 · 0 comments

Comments

@MVKozlov
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant