As clearly mentioned above, rpm & its libraries are 32bit in AIX 7.1 and & AIX 7.2 , and hence the 32bit dnf. So the interpreter has to be 32bit which is "/opt/freeware/libexec/python3.9_32"
------------------------------
Ayappan P
------------------------------
Original Message:
Sent: Fri August 29, 2025 08:01 AM
From: Lionel Widmer
Subject: Ansible and DNF
hi,
Any update on this topic ?
Just tested on an AIX 7.2 LPAR with all RPMs up-to-date and we still have that issue on AIX 7.2. Changing python interpreter for that task to /opt/freeware/libexec/python3.9_32 is the only workaround we found for now
Thanks and best regards
Lionel
------------------------------
Lionel Widmer
------------------------------
Original Message:
Sent: Thu June 24, 2021 02:26 AM
From: SANKET RATHI
Subject: Ansible and DNF
Hi Andrey,
Yes dnf modules are 32bit right now hence it would be used with 32bit python.
The reason for that is rpm and its library are 32bit in AIX.
For future release of AIX we will look for 64bit solution but for AIX 7.1 and 7.2 this is going to be the case. Where ansible dnf module will have to use 32bit python3.
------------------------------
SANKET RATHI
Original Message:
Sent: Wed June 23, 2021 04:55 PM
From: Andrey Klyachkin
Subject: Ansible and DNF
looks like the cause for the error is the following line in ansible.cfg:
interpreter_python = /opt/freeware/bin/python3
If the line is changed to python3_32 (32 bit version of python3), everything works ok:
interpreter_python = /opt/freeware/bin/python3_32
------------------------------
Andrey Klyachkin
https://www.power-devops.com