Update playbooks/zabbix.yml
This commit is contained in:
parent
3cd4148678
commit
d7d3e956c2
1 changed files with 1 additions and 6 deletions
|
|
@ -12,17 +12,12 @@
|
||||||
grafana_secret: "{{ lookup('ansible.builtin.password', '/dev/null', length=32, chars=['ascii_letters', 'digits']) }}"
|
grafana_secret: "{{ lookup('ansible.builtin.password', '/dev/null', length=32, chars=['ascii_letters', 'digits']) }}"
|
||||||
when: not env_file.stat.exists
|
when: not env_file.stat.exists
|
||||||
|
|
||||||
- name: Create parent directory
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: /opt/stacks
|
|
||||||
state: directory
|
|
||||||
mode: '0755'
|
|
||||||
|
|
||||||
- name: Create stack directory
|
- name: Create stack directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /opt/stacks/zabbix
|
path: /opt/stacks/zabbix
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
recurse: yes
|
||||||
|
|
||||||
- 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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue