tmichett / do374

DO374 - Developing Advanced Automation with Red Hat Ansible Automation Platform Demos and Notes
15 stars 23 forks source link

CH1 - Github Tools Playbook #19

Closed tmichett closed 4 months ago

tmichett commented 4 months ago

https://github.com/tmichett/do374/blob/main/Demos/CH1/git/Git_Tools_Setup.yml

Currently the playbook will run with the Ansible-Playbook command. There appears to be missing packages in the DO374 EE as well as the RHEL8 supported

tmichett commented 4 months ago

For the DO374EE

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not import the dnf python module using /usr/bin/python3.9 (3.9.16 (main, May 31 2023, 12:21:58) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)]). Please install python3-dnf or python2-dnf package or ensure you have specified the correct ansible_python_interpreter. (attempted ['/usr/libexec/platform-python', '/usr/bin/python3', '/usr/bin/python2', '/usr/bin/python'])", "results": []}

tmichett commented 4 months ago

For the RHEL8-Supported

TASK [Install Packages for Classroom Building] ***** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not import the dnf python module using /usr/bin/python3.9 (3.9.7 (default, Sep 13 2021, 08:18:39) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)]). Please install python3-dnf or python2-dnf package or ensure you have specified the correct ansible_python_interpreter. (attempted ['/usr/libexec/platform-python', '/usr/bin/python3', '/usr/bin/python2', '/usr/bin/python'])", "results": []}

PLAY RECAP ****

tmichett commented 4 months ago

anr Git_Tools_Setup.yml --eei localhost/tm374_test:1.1 -m stdout

tmichett commented 4 months ago

bash-4.4# microdnf install python3-dnf

tmichett commented 4 months ago

19:36 $ anr Git_Tools_Setup.yml --eei localhost/tm374_test:1.1 -m stdout -K --pae false BECOME password:

PLAY [Setup System for Github with Tools] ****

Works when EEI has been updated with python3-dnf