Add option for custom registries / mirrors (#382)

This commit is contained in:
balazshasprai authored and GitHub committed 2023-10-18 03:33:30 +00:00
1 parent 9b6d551dd6
commit 505c2eeff2
4 files changed
+66

No files matched your search

@@ -0,0 +1,17 @@
---
- name: Create directory /etc/rancher/k3s
file:
path: "/etc/{{ item }}"
state: directory
mode: '0755'
loop:
- rancher
- rancher/k3s
- name: Insert registries into /etc/rancher/k3s/registries.yaml
blockinfile:
path: /etc/rancher/k3s/registries.yaml
block: "{{ custom_registries_yaml }}"
mode: '0600'
create: true