mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-05 13:23:30 +01:00
fix: only deploy k3s_server_manifests_dir on primary controller
This commit is contained in:
parent
50fa321e7e
commit
ef99954177
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@
|
|||
become: "{{ k3s_become_for_directory_creation | ternary(true, false, k3s_become_for_all) }}"
|
||||
|
||||
# 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:
|
||||
src: "{{ item }}"
|
||||
dest: "{{ k3s_server_manifests_dir }}/{{ item | basename | replace('.j2','') }}"
|
||||
|
|
Loading…
Reference in a new issue