Fix idempotency.
This commit is contained in:
parent
a7ba712842
commit
d1386bf475
@ -4,7 +4,16 @@
|
|||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
recurse: yes
|
become: true
|
||||||
|
with_items:
|
||||||
|
- "/mnt/volumes/onlyoffice_data"
|
||||||
|
- "/mnt/volumes/onlyoffice_log"
|
||||||
|
|
||||||
|
- name: Create data directories
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
become: true
|
become: true
|
||||||
with_items:
|
with_items:
|
||||||
- "/mnt/volumes/onlyoffice_data/data"
|
- "/mnt/volumes/onlyoffice_data/data"
|
||||||
|
@ -2,10 +2,9 @@
|
|||||||
# Everything in this volume comes from Git. No need to back it up.
|
# Everything in this volume comes from Git. No need to back it up.
|
||||||
- name: Create /mnt/volumes/openvpn-server_conf directory
|
- name: Create /mnt/volumes/openvpn-server_conf directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "/mnt/volumes/openvpn-server_conf/keys"
|
path: "/mnt/volumes/openvpn-server_conf"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0750'
|
mode: '0750'
|
||||||
recurse: yes
|
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Remove temp directory
|
- name: Remove temp directory
|
||||||
|
Loading…
Reference in New Issue
Block a user