Mark,
I think you can file the bug at https://github.com/IBM/ansible-power-aix.
But do you really need the role? The job done by the script can be done by Ansible:
- name: Download Toolbox bundle
ansible.builtin.get_url:
url: "https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/dnf_bundle_aix_73.tar"
dest: "./dnf_bundle_aix_73.tar"
delegate_to: localhost
run_once: true
- name: Copy the bundle to server
ansible.builtin.raw: "scp {{ bundle_name }} {{ ansible_user }}@{{ inventory_hostname }}:"
delegate_to: localhost
- name: Create a temporary directory
ansible.builtin.raw: "mkdir -p /tmp/dnf_install"
- name: Unpack the bundle
ansible.builtin.raw: "tar xf {{ bundle_name }} -C /tmp/dnf_install"
- name: Install RPM packages
ansible.builtin.raw: "cd /tmp/dnf_install && ./install_dnf.sh -y"
become: true
register: rpm_install
- name: Show output
ansible.builtin.debug:
var: rpm_install.stdout_lines
Sorry, the formatting is wrong because this is part of another playbook with more checks and whistles. Of course, the script checks filesystem sizes and does some more jobs. Everything that you can incorporate into your playbook ;-)
The biggest disadvantage of the role is that it downloads the bundle from the Internet to every AIX server. There is no way to set the source of the bundle file. On AIX 7.3, there is no need for the role at all because Python is usually already installed in the standard installation unless you change it.
------------------------------
Andrey Klyachkin
https://www.power-devops.com------------------------------