ansible-role-k3s/tasks/build/preconfigure-k3s-auto-deploying-manifests.yml

17 lines
519 B
YAML
Raw Normal View History

---
2020-01-13 22:32:31 +01:00
- 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
2020-01-13 22:32:31 +01:00
- 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 }}"