Automation with Power

 View Only
  • 1.  IBM.POWER_AIX.NIM how do I accept license agreements?

    Posted 28 days ago

    Hi 

    I am trying to use ibm.power_aix.nim to install three filesets using install_filesets. I have defined an lpp_source and installp bundle on the nim server. 

    When I run the playbook it fails on license acceptance.

    I can update manually using a shell module where I can add the license acceptance to the nim -o cust command. The playbook runs fine with this.  I would like to use ibm.power_aix.nim rather.

     Is there an option to accept licenses using ibm.power_aix.nim?

    Thanks

    Lance



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


  • 2.  RE: IBM.POWER_AIX.NIM how do I accept license agreements?

    Posted 26 days ago
    Edited by Niklas Vosskoetter 26 days ago

    Hey Lance,

    there was no option to pass a accept_licenses to the command line via Ansible, but your request triggered the Ansible team and they created a Pull Request on Github to match your needs.

    Github Pull Request: https://github.com/IBM/ansible-power-aix/pull/606/files

    If you are able to test this change locally (for example by editing the nim.py in your local copy of the collection) you can provide some feedback here or on Github. It is not official released yet, so you are not able to use it by updating your Ansible aix collection to a newer version, so this is why I want to give you the hint to edit nim.py manually.



    ------------------------------
    Niklas
    System Engineer Unix and Cloud Service Power
    ------------------------------



  • 3.  RE: IBM.POWER_AIX.NIM how do I accept license agreements?

    Posted 26 days ago

    Thank you Niklas.

    I will look into editing nim.py in the interim and provide feedback.

    Appreciate the assistance.

    Kind regards



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



  • 4.  RE: IBM.POWER_AIX.NIM how do I accept license agreements?

    Posted 23 days ago

    Hi Niklas

    Thanks for the suggestion. I got it working by doing the following edit in nim.py:

    #cust_cmd = ['nim', '-o', 'cust']
            cust_cmd = ['nim', '-o', 'cust',
                    '-a', 'lpp_source=' + lpp_source,
                    '-a', 'installp_bundle=' + installp_bundle,
                    '-a', 'accept_licenses=yes',
                    target]

    I couldn't add the change correctly throughout but this hardcoded version works for now until I can get the official fix.

    Kind regards



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



  • 5.  RE: IBM.POWER_AIX.NIM how do I accept license agreements?

    Posted 23 days ago

    Hey Lance,

    thanks for your feedback. It's good to know that the change works and i will keep you updated when the collection is released.



    ------------------------------
    Niklas Vosskoetter
    Deputy Team Lead & System Engineer Unix and Cloud Service Power
    ------------------------------