mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-05 21:33:30 +01:00
Fix autodeploy test
This commit is contained in:
parent
f4fcd2897d
commit
2432a7d25f
1 changed files with 15 additions and 0 deletions
|
@ -7,3 +7,18 @@
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
when: ansible_pkg_mgr == 'apt'
|
when: ansible_pkg_mgr == 'apt'
|
||||||
|
|
||||||
|
- name: Ensure install directory and configuration directory exists
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "/opt/k3s/{{ item }}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
loop:
|
||||||
|
- bin
|
||||||
|
- etc
|
||||||
|
|
||||||
|
- name: Ensure data directory exists
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "/var/lib/k3s-io"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
Loading…
Reference in a new issue