I am trying to install Ansible Automation Platform setup bundle (ansible-automation-platform-setup-bundle-2.4-7-x86_64.tar.gz), downloaded directly from Red Hat’s Ansible portal.
When I try to install the bundle, after extracting, I run this command:
sudo ANSIBLE_BECOME_METHOD='sudo' ANSIBLE_BECOME=True ./setup.sh
And, invariably, I get the result that nothing provides Python3.9. Except I do have it insatlled, and it is in my PATH.
I also have an alias (python39='/usr/bin/python3.9'
)
command: /usr/bin/python3.9
result:
Python 3.9.19 (main, Jul 9 2024, 18:04:08)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-20)] on linux
Type "help", "copywright", "credits or "license" for more information.
>>>
>>> exit()
So Python is definitely installed and configured and available in my PATH as root.
command: [root@ansibleserver01 /tmp]# echo $PATH
output: /usr/bin/python3.12:/usr/bin/python3.9:/usr/local/bin/python3.9:/usrlocal/bin:/usr/local/sbin:/usr/bin:/root/bin
So python3.9 is definitely in my PATH.
So when I try yo install the Ansible Automation Platform offline bundle installer with that setup.sh
above, I get the following errors, everytime:
Error:
Problem: conflicting requests
- nothing provides /usr/bin/python3.9 needed by ansible-core-1:2.15.10-1.el8ap.noarch from ansible-automation-platform-temp
- nothing provides python39 needed by ansible-core-1:2.15.10-1.el8ap.noarch from ansible-platform-temp
- nothing provides python(abi) = 3.9 needed by ansible-core-1:2.15.10-1.el8ap.noarch from ansible-automation-platform-temp
- nothing provides python39-PyYAML >= 5.1 needed by ansible-core-1:2.15.10-1.el8ap.noarch from ansible-automation-platform-temp
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
./setup.sh: line 420: ansible-playbook: command not found
[error] Oops! An error occurred while running setup.
[warn] /var/log/tower does not exist. Setup log saved to setup.log.
[warm] Provided path does not exist or is no accessible. Setup log save to ./setup.log
And the setup.log
file has one one line: ./setup.sh: line 420: ansible-playbook: command not found
So the RPMs that it tries to install do not come packages with Python 3.9 or python39-PyYAML >=5.1… except I have all this software already on my machine.
How do I force the .rpm installers to use the locally-available python3.9 and python39-pyYAML instead of thinking that it needs it to be also in the RPM repos?
Thanks,