Closed jmazzitelli closed 3 years ago
Seems you have to provide the fully scoped name of the k8s task to get this to work. When I made this change to my test playbook, it all worked:
...
community.kubernetes.k8s: <<--- USE THE FULL NAME HERE (not just "k8s")
state: present
...
Closing this issue since this doesn't appear to be a bug in the collection.
SUMMARY
I originally reported this last year here: https://github.com/ansible-collections/community.kubernetes/issues/234 Some work was done to address it - PR is here: https://github.com/ansible-collections/community.kubernetes/pull/237 However, I still do not see it work; I'm getting the same error as before.
ISSUE TYPE
COMPONENT NAME
k8s
CONFIGURATION
OS / ENVIRONMENT
RHEL 8
K8S ENVIRONMENT
EXPECTED RESULTS
See the PR I linked above that shows what is now expected.
ACTUAL RESULTS
Same error as before.
STEPS TO REPRODUCE
I am going to show you the output of four commands I run - the first shows you my ansible version, the second shows you my collection versions from ansible-galaxy output, the third shows you the content of my test script with the replication ansible playbook, the fourth shows you the ansible run showing the error I get.
And, for the record, I can create cluster roles: