# Ansible AWX - Add Execution

**URL:** <https://forum.ansible.com/t/ansible-awx-add-execution/37549>\
**Category:** Ansible Project\
**Tags:** ubuntu, awx\
**Created:** [January 12, 2023, 5:07pm UTC](https://forum.ansible.com/t/ansible-awx-add-execution/37549 "2023-01-12T17:07:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mattia\_Maragno](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mattia\_Maragno](https://forum.ansible.com/u/Mattia_Maragno)\
**Post date:** [January 12, 2023, 5:07pm UTC](https://forum.ansible.com/t/ansible-awx-add-execution/37549/1 "2023-01-12T17:07:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![SP1\_77](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@SP1\_77](https://forum.ansible.com/u/SP1_77)\
**Post date:** [January 17, 2023, 2:50am UTC](https://forum.ansible.com/t/ansible-awx-add-execution/37549/2 "2023-01-17T02:50:48Z")

</div>

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
