---
- hosts: localhost
gather_facts: no
tasks:
- netbox.netbox.netbox_device:
netbox_url: https://netbox.pcigdc.com
netbox_token: …
data:
name: cmp0090.na3.pcigdc.com
An exception occurred during task execution. To see the full
traceback, use -vvv. The error was: ModuleNotFoundError: No module
named 'pynetbox'
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to
import the required Python library (pynetbox) on
bastion01a.na3.pcigdc.com's Python /usr/bin/python3.8. Please read the
module documentation and install it in the appropriate location. If
the required library is installed, but Ansible is using the wrong
Python interpreter, please consult the documentation on
ansible_python_interpreter"}
Changing gather_facts does not change anything…
On Tue, Jun 7, 2022 at 8:30 AM Maxwell G <[email protected]> wrote:
>
> Jun 7, 2022 12:09:15 AM Igor Raits <[email protected]>:
> > The new ansible (5.x) is in the EPEL stable which works great until
> > one tries to use some non-trivial modules which require some Python
> > modules to be available… At that point you realize that the new
> > Ansible is built against Python 3.8 (default is 3.6) and we don't have
> > many python38-* packages (almost none).
>
> Take a look at https://bugzilla.redhat.com/show_bug.cgi?id=2093589#c1 . Only
> libraries required by controller plugins (e.g. python38-jmespath[1] for the
> json_query filter plugin) need to packaged for python38. Modules are
> *supposed*
> to use the system python interpreter (/usr/libexec/platform-python).
>
> [1]: https://src.fedoraproject.org/rpms/python38-jmespath/tree/epel8
>
> > The question is: What is the recommendation on how to get those
> >modules available in EPEL8? Do we want to go with
> > python3_other_pkgversion (which is not defined now) and build all
> > packages with python36/python38 both available or is there a plan to
> > switch default Python in EL8 to 3.8?
>
> This was discussed here:
> https://lists.fedoraproject.org/archives/list/[email protected]/thread/CECLJH3QPXWNZGNTG3KIQHFZB4WFVOAN/
> #S57EJSNCP6YOY7QXGGI4NATDR2FKQZWO
>
> --
> Maxwell G
> Pronouns: He/Him/His
> [email protected]
--
— Igor Raits.
_______________________________________________
epel-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure