mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-05 05:13:29 +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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue