feat: initial commit
This commit is contained in:
commit
29bec6f965
17 changed files with 343 additions and 0 deletions
34
tasks/install.yaml
Normal file
34
tasks/install.yaml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
|
||||
# install zabbix-server
|
||||
- name: "install zabbix-server"
|
||||
when: "zabbix_major_version not in zabbix_current_version.stdout"
|
||||
block:
|
||||
|
||||
# install repository - debian
|
||||
- name: "install repository"
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
block:
|
||||
|
||||
# remove old proxy
|
||||
- name: "remove old proxy"
|
||||
ansible.builtin.apt:
|
||||
name: "zabbix-proxy"
|
||||
state: "absent"
|
||||
loop:
|
||||
- "zabbix-proxy"
|
||||
|
||||
# install zabbix proxy
|
||||
- name: "install zabbix-proxy"
|
||||
ansible.builtin.apt:
|
||||
name: "zabbix-proxy-sqlite3"
|
||||
state: "present"
|
||||
update_cache: true
|
||||
|
||||
# create zabbix db directory
|
||||
- name: "create zabbix db directory"
|
||||
ansible.builtin.file:
|
||||
path: "/usr/lib/zabbix/proxy/"
|
||||
state: "directory"
|
||||
owner: "zabbix"
|
||||
group: "zabbix"
|
||||
Loading…
Add table
Add a link
Reference in a new issue