MrMEEE / awx-rpm-v2

AWX-RPM Reignited
GNU Affero General Public License v3.0
36 stars 11 forks source link

Error install RHEL 7.9 #8

Closed tungduync closed 6 months ago

tungduync commented 1 year ago

Could you please help me with an issue I encountered while installing this excellent project on my RHEL 7.9 system? I am not sure if anyone else has encountered the same problem. Thank you. image

MrMEEE commented 1 year ago

Right now, only RHEL 9 and maybe CentOS 9 is supported...

linndoug commented 1 year ago

I have the same problem as above with both Centos 9 and RHEL 9. Server install. with only

tasks file for awx-rpm

ansible-playbook -i inventory awx-rpm-install.yml -vvvv ansible-playbook [core 2.14.2] config file = /root/awx-rpm-v2/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.11/site-packages/ansible ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections executable location = /usr/bin/ansible-playbook python version = 3.11.2 (main, May 24 2023, 00:00:00) [GCC 11.3.1 20221121 (Red Hat 11.3.1-4)] (/usr/bin/python3.11) jinja version = 3.1.2 libyaml = True Using /root/awx-rpm-v2/ansible/ansible.cfg as config file setting up inventory plugins host_list declined parsing /root/awx-rpm-v2/ansible/inventory as it did not pass its verify_file() method script declined parsing /root/awx-rpm-v2/ansible/inventory as it did not pass its verify_file() method auto declined parsing /root/awx-rpm-v2/ansible/inventory as it did not pass its verify_file() method Not replacing invalid character(s) "{'-'}" in group name (awx-rpm) [WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details Not replacing invalid character(s) "{'-'}" in group name (awx-rpm) Parsed /root/awx-rpm-v2/ansible/inventory inventory source with ini plugin ERROR! couldn't resolve module/action 'ansible.posix.selinux'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/root/awx-rpm-v2/ansible/awx-rpm/tasks/main.yml': line 9, column 3, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

MrMEEE commented 9 months ago

Seems like you only have ansible-core installed.. either install the required collections with ansible-galaxy, or install a full ansible.. (pip install ansible)

MrMEEE commented 6 months ago

RHEL7 won't get supported, as it is near EOL..

Issue #23 is created for RHEL8 and CentOS8+9