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
  • 1.  Nim bos_inst using AIX ansible collection

    Posted Mon March 03, 2025 02:28 AM
    Edited by Glenn Robinson Mon March 03, 2025 06:28 AM

    How do I use the ansible nim module to do a bos_inst?

    I have the following nim command:

    nim -o bos_inst -a source=rte -a lpp_source=lpp_Source_7200_05_04-a spot=SPOT_7200_05_04 -a accept_licenses=yes -a boot_client=no myaixlpar

    The nim module has an example:

    - name: Install using group resource
      nim:
        action: bos_inst
        targets: nimclient01
        group: basic_res_grp

    Am I right to assume I need to use the nim allocate action first to allocate the lpp_source and SPOT?

    Also, I don't see an accept_licenses option in the nim module.

    Any guidance on this welcome.



    ------------------------------
    Glenn Robinson
    ------------------------------



  • 2.  RE: Nim bos_inst using AIX ansible collection

    Posted Tue March 04, 2025 01:38 AM

    Hi Glenn

    First make sure you are using the latest content collection ibm.power_aix version 2.0.3.  Please see this link: The AIX Ansible collection - power_aix v2.0.3 is available now! (ibm.com)

    With this version by default it should accept licenses on install. The allocation should happen as part of the operation so you shouldn't need to allocate it first.

    A sample I use is below:

     - name: Install AIX
          ibm.power_aix.nim:
            action: bos_inst
            targets: "{{ target_host }}"
            group: "{{ basic_res_grp }}"

    However this would require you to setup the basic_res_grp in nim first which would contain the lpp_source, spot etc.

    Kind regards 


            
      



    ------------------------------
    Lance Martincich
    ERP Systems Engineer
    City of Cape Town
    Cape Town
    +27832856514
    ------------------------------



  • 3.  RE: Nim bos_inst using AIX ansible collection

    Posted Tue March 04, 2025 03:54 AM

    Lance,

    Thanks for this. 

    It was the setting up of basic_res_group I hadn't worked out!!!

    I'll give this a try.

    Thanks again.



    ------------------------------
    Glenn Robinson
    ------------------------------