mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-06 13:53:29 +01:00
14 lines
491 B
YAML
14 lines
491 B
YAML
---
|
|
|
|
- name: ensure that the manifests directory exists, if required
|
|
file:
|
|
state: directory
|
|
path: "{{ k3s_server_manifests_dir }}"
|
|
when: k3s_server_manifests_templates | length > 0
|
|
|
|
# https://rancher.com/docs/k3s/latest/en/advanced/#auto-deploying-manifests
|
|
- name: Copy Auto-Deploying Manifests to Cluster
|
|
template:
|
|
src: "{{ item }}"
|
|
dest: "{{ k3s_server_manifests_dir }}/{{ item | basename | replace('.j2','') }}"
|
|
with_items: "{{ k3s_server_manifests_templates }}"
|