homeserver/roles/PyratLabs.k3s/tasks/ensure_directories.yml
mg 3cc377c1a7 Rolle aktualisiert: k3s (#455)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #455
2023-02-17 12:00:24 +01:00

12 lines
306 B
YAML

---
- name: Ensure {{ directory.name }} exists
ansible.builtin.file:
path: "{{ directory.path }}"
state: directory
mode: "{{ directory.mode | default(755) }}"
become: "{{ k3s_become }}"
when:
- directory.path is defined
- directory.path | length > 0
- directory.path != omit