How to use / install Ansible collections - Content has no field named 'owner' and sorry, community.kubernetes was not found

3/23/2020

I noticed more and more stuff is distributed using Ansible collections. It looks great but it is unclear to me how Ansible collections are used / should be used.

For example when I try

ansible-galaxy collection install community.kubernetes

It just displays a warning and error and does nothing

[user:~] 5 $ ansible-galaxy collection install community.kubernetes
- downloading role 'collection', owned by   [WARNING]: - collection was NOT installed successfully: Content has no field named 'owner'

ERROR! - you can use --ignore-errors to skip failed roles and finish
processing the list.

Ignoring errors doesn't help, it still won't install

[user:~] $ ansible-galaxy collection install community.kubernetes --ignore-errors
- downloading role 'collection', owned by 
 [WARNING]: - collection was NOT installed successfully: Content has no field named 'owner'

- downloading role 'kubernetes', owned by community
 [WARNING]: - community.kubernetes was NOT installed successfully: - sorry, community.kubernetes was not found on
https://galaxy.ansible.com.

[user:~] $ 
-- onknows
ansible
collections
kubernetes

1 Answer

3/28/2020

Collections require Ansible 2.9.*

-- onknows
Source: StackOverflow