mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-24 12:06:50 +01:00
Create registries.yaml only if k3s_registries.mirrors or k3s_registries.configs are not empty
This commit is contained in:
parent
44635027ce
commit
cc64737bdc
@ -31,7 +31,7 @@
|
||||
- name: Ensure containerd registries
|
||||
ansible.builtin.include_tasks: ensure_containerd_registries.yml
|
||||
when:
|
||||
- k3s_registries is defined
|
||||
- (k3s_registries.mirrors | default(None)) != None or (k3s_registries.configs | default(None) != None)
|
||||
- ('rootless' not in k3s_runtime_config or not k3s_runtime_config.rootless)
|
||||
|
||||
- name: Run cluster pre-checks
|
||||
|
Loading…
Reference in New Issue
Block a user