feat: initial commit

This commit is contained in:
Simon Cornet 2025-06-06 18:23:44 +02:00
commit f7e873865b
16 changed files with 273 additions and 0 deletions

19
tasks/config.yaml Normal file
View file

@ -0,0 +1,19 @@
---
# config zabbix-web-server
- name: "config zabbix-web-server"
ansible.builtin.template:
src: "templates/zabbix/zabbix.conf.php.j2"
dest: "/etc/zabbix/web/zabbix.conf.php"
owner: "www-data"
group: "www-data"
mode: "0600"
# configure branding
- name: "configure branding"
ansible.builtin.template:
src: "templates/zabbix/brand.conf.php.j2"
dest: "/usr/share/zabbix/local/conf/brand.conf.php"
owner: "root"
group: "root"
mode: "0664"

11
tasks/install.yaml Normal file
View file

@ -0,0 +1,11 @@
---
# install zabbix-web-server
- name: "install zabbix-web-server"
ansible.builtin.apt:
name: "{{ item }}"
state: "present"
update_cache: true
with_items:
- "zabbix-frontend-php"
- "zabbix-apache-conf"

9
tasks/main.yaml Normal file
View file

@ -0,0 +1,9 @@
---
# zabbix-web-server install
- name: "zabbix-web-server install"
ansible.builtin.import_tasks: "install.yaml"
# zabbix-web-server config
- name: "zabbix-web-server config"
ansible.builtin.import_tasks: "config.yaml"