mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2025-02-17 01:31:47 +01:00
fix: only deploy k3s_server_manifests_dir on primary controller
This commit is contained in:
parent
50fa321e7e
commit
ef99954177
@ -9,7 +9,8 @@
|
|||||||
become: "{{ k3s_become_for_directory_creation | ternary(true, false, k3s_become_for_all) }}"
|
become: "{{ k3s_become_for_directory_creation | ternary(true, false, k3s_become_for_all) }}"
|
||||||
|
|
||||||
# https://rancher.com/docs/k3s/latest/en/advanced/#auto-deploying-manifests
|
# https://rancher.com/docs/k3s/latest/en/advanced/#auto-deploying-manifests
|
||||||
- name: Ensure auto-deploying manifests are copied to controllers
|
- name: Ensure auto-deploying manifests are copied to the primary controller
|
||||||
|
run_once: true
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: "{{ k3s_server_manifests_dir }}/{{ item | basename | replace('.j2','') }}"
|
dest: "{{ k3s_server_manifests_dir }}/{{ item | basename | replace('.j2','') }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user