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
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue