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

Commit

Permalink
Add install_recommends option to the apt-install of zabbix-server
Browse files Browse the repository at this point in the history
Add option to not install database client
  • Loading branch information
Greg McGilvray committed Nov 9, 2018
1 parent 92b0b3b commit f9b60d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Expand Up @@ -6,6 +6,8 @@ zabbix_version: 4.0
zabbix_repo: zabbix

zabbix_server_package_state: present
zabbix_server_install_recommends: True
zabbix_server_install_database_client: True

zabbix_repo_yum:
- name: zabbix
Expand Down
3 changes: 3 additions & 0 deletions tasks/Debian.yml
Expand Up @@ -64,6 +64,7 @@
state: "{{ zabbix_server_package_state }}"
update_cache: yes
cache_valid_time: 0
install_recommends: "{{ zabbix_server_install_recommends }}"
tags:
- zabbix-server
- init
Expand All @@ -86,6 +87,7 @@
state: present
when:
- zabbix_server_database == 'mysql'
- zabbix_server_install_database_client == true
tags:
- zabbix-server
- init
Expand All @@ -97,6 +99,7 @@
state: present
when:
- zabbix_server_database == 'pgsql'
- zabbix_server_install_database_client == true
tags:
- zabbix-server
- init
Expand Down

0 comments on commit f9b60d7

Please sign in to comment.