Closed spetrosi closed 2 years ago
I've been trying to reproduce without using hosts localhost
- I'm using tox -e qemu-ansible-core-2.13 -- --image-name rhel-8
- I cannot reproduce - so perhaps it has something to do with using localhost
? If so, then please see https://access.redhat.com/solutions/6726561
Resolution
Choose one of the options below to workaround the issue:
Create an inventory file that lists localhost with the ansible_connection=local option.
For example, an inventory file with:
localhost ansible_connection=local
Run ansible-playbook and specify that this inventory file should be used:
ansible-playbook -i inventory <playbook>
Create an inventory file that lists localhost.
Note that this will result in ansible-playbook connecting to the localhost over SSH with SSH key authentication, which must have previously been configured.
For example, an inventory file with:
localhost
Run ansible-playbook and specify that this inventory file should be used:
ansible-playbook -i inventory <playbook>
Use implicit localhost, with the ansible_python_interpreter variable set to use platform-python
For example:
ansible-playbook <playbook> -e 'ansible_python_interpreter=/usr/libexec/platform-python'
Root Cause
RHEL 8.6 uses Ansible Core 2.12 to support RHEL System Roles. Ansible Core 2.12 utilizes Python 3.8 which does not contain all of the required Python modules (for example the blivet module for the storage RHEL System Role).
And - RHEL 8.7 uses Ansible Core 2.13 which uses python 3.9 which has the same python library/module problem.
True @richm, it was the localhost issue for me. I am not able to reproduce the issue with dbus then. I'll get back to ms folks for more info.
What happened: I am running this playbook on a latest RHEL 8.6 image:
This results in an error:
What you expected to happen: Port 59999/tcp to be enabled
How to reproduce it (as minimally and precisely as possible):
dnf install ansible-core -y
ansible-galaxy collection install fedora.linux_system_roles
playbook.yml
with the above playbook.ansible-playbook playbook.yml
Anything else we need to know?: I tested this against RHEL 8.7 composes too. There tried both with
fedora.linux_system_roles.firewall
andredhat.rhel_system_roles.firewall
- same error.Environment:
dnf info firewalld
or commit hash if developing from gitgit log -n1 --format=format:"%H"
):cat /etc/firewalld/firewalld.conf | grep FirewallBackend
):ansible --version
)ansible-galaxy list | grep linux-system-roles.firewall
or commit hash if developing from gitgit log -n1 --format=format:"%H"
):cat /etc/os-release
):