Open Source Development

 View Only

 dnf install module error

NBG UnixSystemsSupport's profile image
NBG UnixSystemsSupport posted Wed January 28, 2026 08:31 AM

Hello, we are getting the following error while trying to install a package on AIX 7.3.

toolbox as well as python3.12 is previously installed fine and dnf commands run fine.

even the package in question is also installed. But we get this failure message.

failures:
  - No package tmux available.
results: []
rc: 1
msg: Failed to install some of the specified packages
invocation:
  module_args:
    conf_file: /opt/freeware/etc/dnf/dnf.conf
    name:
      - tmux
    state: latest
    allow_downgrade: false
    autoremove: false
    bugfix: false
    cacheonly: false
    disable_gpg_check: false
    disable_plugin: []
    disablerepo: []
    download_only: false
    enable_plugin: []
    enablerepo: []
    exclude: []
    installroot: /
    install_repoquery: true
    install_weak_deps: true
    security: false
    skip_broken: false
    update_cache: false
    update_only: false
    validate_certs: true
    sslverify: true
    lock_timeout: 30
    allowerasing: false
    nobest: false
    use_backend: auto
    disable_excludes: null
    download_dir: null
    list: null
    releasever: null
_ansible_no_log: false
changed: false

 /opt/freeware/bin # ll python3
lrwxrwxrwx-    1 root     system           10 Nov 03 12:09 python3 -> python3.12

and the playbook we run is :

[root@X0000Z0333 playbooks]# cat /home/ansadmin/projects/nbg-aap-ansible/playbooks/aix/aix_dnf_install_pkgs.yml
---
- name: Install packages from PACKAGES var
  hosts: all
  gather_facts: true
  become: yes
  vars:
    ansible_python_interpreter: /opt/freeware/bin/python3
    PACKAGES: "tmux,screen,wget,curl,ncat,vim-enhanced,python3-dnf,python3.11"
  environment:
    http_proxy: ""
    https_proxy: ""

  tasks:
    - name: Install packages from PACKAGES var
      ansible.builtin.dnf:
        conf_file: /opt/freeware/etc/dnf/dnf.conf
        name: "{{ PACKAGES }}"
        state: latest
        use_backend: dnf4
      vars:
        ansible_python_interpreter: "{{ '/opt/freeware/bin/python3' if ansible_distribution_version == '7.3' else '/opt/freeware/libexec/python3' }}"

any ideas?

Thanks