mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2025-01-09 19:20:18 +01:00
11 lines
339 B
YAML
11 lines
339 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 != omit
|