Ansible AWX - Add Execution

133 views
Skip to first unread message

Mattia Maragno

unread,
Jan 12, 2023, 12:08:10 PM1/12/23
to Ansible Project
Hello,

i try to install awx execution to isolated network.
VM is
Distributor ID:    Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:    jammy

Python 3.10.6
ansible [core 2.13.7]

but when execute "ansible-playbook -i inventory.yml install_receptor.yml -vvv", task end withe error:

    "stderr": "/usr/lib/python3/dist-packages/dnf/const.py:22: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives\n  import distutils.sysconfig\n/usr/lib/python3/dist-packages/dnf/const.py:22: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead\n  import distutils.sysconfig\nUnable to detect release version (use '--releasever' to specify release version)\nNo such command: copr. Please use /usr/bin/dnf --help\nIt could be a DNF plugin command, try: \"dnf install 'dnf-command(copr)'\"",
    "stderr_lines": [
        "/usr/lib/python3/dist-packages/dnf/const.py:22: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives",
        "  import distutils.sysconfig",
        "/usr/lib/python3/dist-packages/dnf/const.py:22: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead",
        "  import distutils.sysconfig",
        "Unable to detect release version (use '--releasever' to specify release version)",
        "No such command: copr. Please use /usr/bin/dnf --help",
        "It could be a DNF plugin command, try: \"dnf install 'dnf-command(copr)'\""
    ],


if try execute dnf copr enable ansible-awx/receptor -y

"/usr/lib/python3/dist-packages/dnf/const.py:22: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  import distutils.sysconfig
/usr/lib/python3/dist-packages/dnf/const.py:22: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
  import distutils.sysconfig
Unable to detect release version (use '--releasever' to specify release version)
No such command: copr. Please use /usr/bin/dnf --help
It could be a DNF plugin command, try: "dnf install 'dnf-command(copr)'""

how to resolve problem?
Thanks
Mattia

SP1 -77

unread,
Jan 16, 2023, 9:51:14 PM1/16/23
to ansible...@googlegroups.com

Hi,

Have you installed the DNF plugin command ? 

dnf install 'dnf-command(copr)'

And then retry ansible-playbook -i inventory.yml install_receptor.yml -vvv


--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9eeba493-7a57-487e-8356-0fccf2f1e491n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages