Update playbooks/zabbix.yml

This commit is contained in:
lorentz 2026-02-23 13:48:52 -05:00
parent 009cecd03f
commit bb05c4e55e

View file

@ -18,17 +18,17 @@
state: directory state: directory
mode: '0755' mode: '0755'
- name: Write .env file (only if it didn't exist) - name: Write .env file (only if it didn't exist)
ansible.builtin.copy: ansible.builtin.copy:
dest: /opt/stacks/zabbix/.env dest: /opt/stacks/zabbix/.env
mode: '0600' mode: '0600'
content: | content: |
POSTGRES_USER={{ POSTGRES_USER }} POSTGRES_USER={{ postgres_user }}
POSTGRES_PASSWORD={{ postgres_password }} POSTGRES_PASSWORD={{ postgres_password }}
POSTGRES_DB={{ POSTGRES_DB }} POSTGRES_DB={{ postgres_db }}
GRAFANA_USER={{ GRAFANA_USER }} GRAFANA_USER={{ grafana_user }}
GRAFANA_SECRET={{ grafana_secret }} GRAFANA_SECRET={{ grafana_secret }}
TZ={{ TZ }} TZ={{ tz }}
when: not env_file.stat.exists when: not env_file.stat.exists
- name: Read existing .env file - name: Read existing .env file