Automation with Power

Automation with Power

Learn about using IBM Power automation tools to automate repetitive tasks and quickly identify and resolve production issues. Start a discussion thread - share your experiences by writing a blog - and stay up to date by browsing the content library. 

 View Only
Expand all | Collapse all

Need guidance to configure Ansible in AIX server

  • 1.  Need guidance to configure Ansible in AIX server

    Posted Sat March 29, 2025 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 Thu April 24, 2025 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 Mon April 28, 2025 01:40 PM
    Edited by Mark Steele Mon April 28, 2025 03:21 PM

      



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

    Posted Mon April 28, 2025 06:21 AM
    Edited by Chris Gibson Mon April 28, 2025 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
    ------------------------------