PyratLabs / ansible-role-k3s

Ansible role for installing k3s as either a standalone server or HA cluster.
BSD 3-Clause "New" or "Revised" License
627 stars 135 forks source link

k3s_registries always defined #205

Closed matteyeux closed 1 year ago

matteyeux commented 1 year ago

Summary

Looking at the task Ensure containerd registries, it is run when k3s_registries is defined:

- name: Ensure containerd registries
  ansible.builtin.include_tasks: ensure_containerd_registries.yml
  when:
    - k3s_registries is defined
    - ('rootless' not in k3s_runtime_config or not k3s_runtime_config.rootless)

But turns out, k3s_registries is always defined in defaults. Is there a way to skip the installation of the file registries.yml without removing the include_tasks?

Issue Type

Controller Environment and Configuration

Using latest version of the role

Steps to Reproduce

run the role

onedr0p commented 1 year ago

@matteyeux if you have time please open a PR to address this issue, that would be great.