Login to the Ansible Tower node and change to awx user.
# sudo su -awx
If you use a custom virtual environment in Ansible Tower, source it as follows.
For Ansible or your custom virtual environment, export the Python path used during Ansible Tower task executions.
On the CentOS 7 Server, run as follows.
On CentOS 8,
Run the playbook using the ansible-playbook command.
You must give any necessary credentials, inventory, and variables to the ansible-playbook command because Ansible Tower’s credentials, inventory, and other parameters won’t be used.
ansible-playbook myplaybook.yml -vvv
Deactivate the Ansible virtual environment as follows.