mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-10-31 08:28:54 +01:00
c743df868b
This release also fixes: - #38 : removing the --disable-agent option. Please use node taints. - #39 : clarified where jmespath should be installed in README.md
17 lines
519 B
YAML
17 lines
519 B
YAML
---
|
|
|
|
- name: Ensure that the manifests directory exists
|
|
file:
|
|
state: directory
|
|
path: "{{ k3s_server_manifests_dir }}"
|
|
mode: 0755
|
|
when: k3s_server_manifests_templates | length > 0
|
|
|
|
# https://rancher.com/docs/k3s/latest/en/advanced/#auto-deploying-manifests
|
|
- name: Ensure Auto-Deploying Manifests are copied to controllers
|
|
template:
|
|
src: "{{ item }}"
|
|
dest: "{{ k3s_server_manifests_dir }}/{{ item | basename | replace('.j2','') }}"
|
|
mode: 0644
|
|
loop: "{{ k3s_server_manifests_templates }}"
|