Opened an issue on GitHub
https://github.com/ansible-collections/kubernetes.core/issues/351
On Monday, 31 January 2022 at 18:18:00 UTC+2 @rabin wrote:
> 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) }}"
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/790c9fda-4c28-4dbe-b02d-4e27d9efc134n%40googlegroups.com.