when:not (ansible_os_family in ["CoreOS", "Container Linux by CoreOS", "RedHat", "Suse", "ClearLinux"] or is_atomic)
- name:ensure containerd repository is enabled
action:"{{ containerd_repo_info.pkg_repo }}"
args:
repo:"{{ item }}"
state:present
with_items:"{{ containerd_repo_info.repos }}"
when:not (ansible_os_family in ["CoreOS", "Container Linux by CoreOS", "RedHat", "Suse", "ClearLinux"] or is_atomic) and (containerd_repo_info.repos|length > 0)