fix: only deploy k3s_server_manifests_dir on primary controller

This commit is contained in:
ᗪєνιη ᗷυнʟ 2021-05-25 18:38:07 -04:00 committed by GitHub
parent 50fa321e7e
commit ef99954177
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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','') }}"