Failed to find exact match for v1.Namespace

841 views
Skip to first unread message

@rabin

unread,
Jan 31, 2022, 11:18:00 AM1/31/22
to Ansible Project
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) }}"

@rabin

unread,
Feb 3, 2022, 10:23:12 AM2/3/22
to Ansible Project
Reply all
Reply to author
Forward
0 new messages