Automation with Power

Power Business Continuity and Automation

Connect, learn, and share your experiences using the business continuity and automation technologies and practices designed to ensure uninterrupted operations and rapid recovery for workloads running on IBM Power systems. 


#Power
#TechXchangeConferenceLab


#Servers
 View Only
  • 1.  Need guidance to configure Ansible in AIX server

    Posted 03/29/25 12:56 PM

    Hi Team,

    I need step-by-step process to setup ansible or use ansible to patch AIX server and also to resolve AIX vulnerabilities by using ansible.



    ------------------------------
    Subba Reddy Reddem
    ------------------------------


  • 2.  RE: Need guidance to configure Ansible in AIX server

    Posted 04/24/25 03:28 AM

    Hi Subba !
    First, you need to install Ansible on your controller node and do the required setup for it, post that, download/install AIX specific Ansible collection power_aix, available at the following locations:

    RedHat Automation Hub v2.0.3:
    https://cloud.redhat.com/ansible/automation-hub/ibm/power_aix

    Ansible Galaxy v2.0.3:
    https://galaxy.ansible.com/download/ibm-power_aix-2.0.3.tar.gz

    GitHub v2.0.3:
    https://github.com/IBM/ansible-power-aix/raw/dev-collection/builds/ibm-power_aix-2.0.3.tar.gz

    Once this is done, you'll be able to use the content from our collection.


    For vulnerabilities part, you can use the flrtvc module, like this :

    - name: Download patches for security vulnerabilities
      ibm.power_aix.flrtvc:
        apar: sec
        path: /usr/sys/inst.images
        download_only: true
    
    - name: Install both sec and hyper patches for all filesets starting with devices.fcp
      ibm.power_aix.flrtvc:
        filesets: devices.fcp.*
        path: /usr/sys/inst
        save_report: true
        verbose: true
        force: false
        clean: false

     
    For patching, there are multiple modules like emgr, suma etc..
    You can use them as per your requirements.

    Demo tasks for suma and emgr :

    - name: Check, download and install to latest SP of TL 7.2.4 using suma module.
      ibm.power_aix.suma:
        action: download
        oslevel: '7200-04'
        last_sp: true
        extend_fs: false
    
    - name: Install ifix package from file generated with epkg using emgr module
      ibm.power_aix.emgr:
        action: install
        ifix_package: /usr/sys/inst.images/IJ22714s1a.200212.AIX72TL04SP00-01.epkg.Z
        working_dir: /usr/sys/inst.images
        from_epkg: true
        extend_fs: true


    ------------------------------
    Shreyansh Chamola
    ------------------------------



  • 3.  RE: Need guidance to configure Ansible in AIX server

    Posted 04/28/25 01:40 PM
    Edited by Mark Steele 04/28/25 03:21 PM

      



  • 4.  RE: Need guidance to configure Ansible in AIX server

    Posted 04/28/25 06:21 AM
    Edited by Chris Gibson 04/28/25 06:20 AM

    If you're just getting started you might consider attending this training:

    Ansible on IBM Power Workshop: https://www.ibm.com/training/course/ansible-on-ibm-power-workshop-QZC51G



    ------------------------------
    Chris Gibson
    ------------------------------