mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
Support K3s config yaml (#252)
* Support K3s config yaml Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
@@ -187,3 +187,17 @@
|
||||
dest: "/var/lib/rancher/k3s/server/manifests"
|
||||
mode: 0600
|
||||
loop: "{{ extra_manifests }}"
|
||||
|
||||
- name: Setup optional config file
|
||||
when: config_yaml is defined
|
||||
block:
|
||||
- name: Make config directory
|
||||
ansible.builtin.file:
|
||||
path: "/etc/rancher/k3s"
|
||||
mode: 0755
|
||||
state: directory
|
||||
- name: Copy config values
|
||||
ansible.builtin.copy:
|
||||
content: "{{ config_yaml }}"
|
||||
dest: "/etc/rancher/k3s/config.yaml"
|
||||
mode: 0644
|
||||
|
||||
Reference in New Issue
Block a user