openshift/openshift-restclient-python

This module requires the OpenShift Python client

Asgoret opened this issue · 1 comments

Playbook:

- name: Test secret
  hosts: localhost
  tasks:
  
    - name: Set simple object state="{{ state }}"
      k8s:
        api_key: " {DATA} "
        host: "{URL}"
        state: present
        definition: secret.yaml.j2

Error:

fatal: [localhost]: FAILED! => {"changed": false, "msg": "This module requires the OpenShift Python client. Try `pip install openshift`"}

But:

╰─$ pip show openshift                                                                                                                                           2 ↵
Name: openshift
Version: 0.8.4
Summary: OpenShift python client
Home-page: https://github.com/openshift/openshift-restclient-python
Author: OpenShift
Author-email: UNKNOWN
License: Apache License Version 2.0
Location: /Library/Python/2.7/site-packages
Requires: dictdiffer, jinja2, kubernetes, python-string-utils, ruamel.yaml, six
Required-by:

edit: deleted content here in favor of continuing discussion in the proper repo: ansible/ansible#50529 (comment)