ansible-role-k3s/tasks/build/install-k3s-directories.yml
2021-05-15 20:47:32 +01:00

13 lines
372 B
YAML

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