ansible-role-k3s/tasks/build/install-k3s-directories.yml
2021-01-02 16:33:31 +00:00

12 lines
379 B
YAML

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