mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
feat add custom registries_config_yaml for private-registry (#319)
* feat add custom registries_config_yaml for private-registry Signed-off-by: dreamingdeer <dreamingdeer@yandex.ru> Co-authored-by: dreamingdeer <dreamingdeer@yandex.ru>
This commit is contained in:
@@ -207,3 +207,17 @@
|
||||
dest: "/var/lib/rancher/k3s/server/manifests"
|
||||
mode: 0600
|
||||
loop: "{{ extra_manifests }}"
|
||||
|
||||
- name: Setup optional private registry configuration
|
||||
when: registries_config_yaml is defined
|
||||
block:
|
||||
- name: Make k3s config directory
|
||||
ansible.builtin.file:
|
||||
path: "/etc/rancher/k3s"
|
||||
mode: 0755
|
||||
state: directory
|
||||
- name: Copy config values
|
||||
ansible.builtin.copy:
|
||||
content: "{{ registries_config_yaml }}"
|
||||
dest: "/etc/rancher/k3s/registries.yaml"
|
||||
mode: 0644
|
||||
|
||||
Reference in New Issue
Block a user