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
1 changed files with 2 additions and 1 deletions

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