Everything was working fine until I updated it to the latest version of Ansible.
Versions:
Python 3.11.2
ansible [core 2.14.2] with python version 3.11.2 & jinja version 3.1.2
ansible==4.10.0
ansible-core==2.11.12
cffi==1.15.1
chardet==3.0.4 cryptography==40.0.2
dbus-python==1.2.4 decorator==4.2.1
file-magic==0.3.0
gpg==1.13.1 html5lib==0.999999999
idna==2.5
isc==2.0
Jinja2==3.0.3 jmespath==0.9.0 libcomps==0.1.18
lxml==4.2.3 MarkupSafe==2.0.1
nftables==0.1
ntlm-auth==1.5.0 packaging==21.3
perf==0.1
pexpect==4.3.1
ply==3.9
psutil==5.4.3 ptyprocess==0.5.2 pycairo==1.16.3 pycparser==2.21
pydbus==0.6.0 PyGObject==3.28.3 pykerberos==1.2.4 pyparsing==3.1.1 PySocks==1.6.8
python-dateutil==2.6.1
python-distutils-extra==2.39
python-linux-procfs==0.7.0 pyudev==0.21.0 pywinrm==0.4.3 PyYAML==3.12 requests==2.20.0
requests-ntlm==1.1.0 resolvelib==0.5.4
rpm==4.14.3
selinux==2.9
sepolicy==1.1
setools==4.3.0 setroubleshoot==1.1
six==1.11.0
slip==0.6.4
slip.dbus==0.6.4
sos==4.6.0 SSSDConfig==2.8.2 syspurpose==1.28.36
systemd-python==234 urllib3==1.24.2 webencodings==0.5.1 xmltodict==0.13.0