mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-10-31 08:28:54 +01:00
13 lines
306 B
YAML
13 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
|