Merge pull request #208 from matteyeux/main

Create registries.yaml if k3s_registries.mirrors or k3s_registries.configs are not None
This commit is contained in:
Xan Manning 2023-06-17 11:36:15 +01:00 committed by GitHub
commit 37cca2e487
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,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