I'm having a weird problem with Ansible and OpenShift,
on my Fedora node the playbook succeed, but on my RHEL node, the operation fails with the message:
fatal: [localhost]: FAILED! => changed=false
msg: Failed to find exact match for v1.Namespace by [kind, name, singularName, shortNames]
Both run Ansible installed using `pip install --user`
and have the same collection versions.
Any idea ?
# playbook
---
- hosts: localhost
gather_facts: false
tasks:
- name: Create Namespace for OLM operator
kubernetes.core.k8s:
resource_definition:
apiVersion: v1
kind: Namespace
metadata:
name: local-storage-operator
labels: "{{ ns_labels | default(omit) }}"
annotations: "{{ ns_annotations | default(omit) }}"