Update playbooks/zabbix.yml
This commit is contained in:
parent
009cecd03f
commit
bb05c4e55e
1 changed files with 5 additions and 5 deletions
|
|
@ -18,17 +18,17 @@
|
|||
state: directory
|
||||
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:
|
||||
dest: /opt/stacks/zabbix/.env
|
||||
mode: '0600'
|
||||
content: |
|
||||
POSTGRES_USER={{ POSTGRES_USER }}
|
||||
POSTGRES_USER={{ postgres_user }}
|
||||
POSTGRES_PASSWORD={{ postgres_password }}
|
||||
POSTGRES_DB={{ POSTGRES_DB }}
|
||||
GRAFANA_USER={{ GRAFANA_USER }}
|
||||
POSTGRES_DB={{ postgres_db }}
|
||||
GRAFANA_USER={{ grafana_user }}
|
||||
GRAFANA_SECRET={{ grafana_secret }}
|
||||
TZ={{ TZ }}
|
||||
TZ={{ tz }}
|
||||
when: not env_file.stat.exists
|
||||
|
||||
- name: Read existing .env file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue