Fix idempotency.

This commit is contained in:
yohan 2024-06-20 17:18:26 +02:00
parent a7ba712842
commit d1386bf475
2 changed files with 11 additions and 3 deletions

View File

@ -4,7 +4,16 @@
path: "{{ item }}"
state: directory
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
with_items:
- "/mnt/volumes/onlyoffice_data/data"

View File

@ -2,10 +2,9 @@
# Everything in this volume comes from Git. No need to back it up.
- name: Create /mnt/volumes/openvpn-server_conf directory
ansible.builtin.file:
path: "/mnt/volumes/openvpn-server_conf/keys"
path: "/mnt/volumes/openvpn-server_conf"
state: directory
mode: '0750'
recurse: yes
become: true
- name: Remove temp directory