Ansible AWX - Add Execution

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

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