IBM i Global

IBM i 

Connect, learn, share, and engage with IBM Power.


#Power
 View Only
Expand all | Collapse all

Ansible Content for IBM Power Systems - IBM i

  • 1.  Ansible Content for IBM Power Systems - IBM i

    Posted Thu November 02, 2023 04:01 AM

    Hi,

    I am curios about automation of certain tasks on the i using Ansible.

    Anyone here who has tried out the PTF handling content of "Ansible Content for IBM Power Systems - IBM i" on GitHub?
    Is it any good? General experiences of Ansible and IBM i?

    Thanks,
    Göran Nilsson



    ------------------------------
    Göran Nilsson
    ------------------------------


  • 2.  RE: Ansible Content for IBM Power Systems - IBM i

    Posted Thu November 02, 2023 04:30 AM

    Hi Goran,

    Definitely, you can use Ansible to do many things in IBM i. Look to module list in Ansible Galaxy:

    https://galaxy.ansible.com/ui/repo/published/ibm/power_ibmi/content/

    There are many modules for different tasks and the generic ones (run cl command, sql scripts, etc) which could help to implement more complex process. Of course it will be more useful if you have many LPAR to manage together. Security and configuration management are a good example of tasks that could be accomplished with Ansible.

    PTF roles published in IBM I collection implement a very complete solution for PTF management. I prefer a simpler one when I download PTF groups to one LPAR and from there I distribute and apply them through Ansible.

    Here you have example of what coul be done:

    https://community.ibm.com/community/user/power/blogs/nicolae-chirea/2022/09/02/eliminate-the-pain-of-a-switchover-ha-automatizati

    https://community.ibm.com/community/user/power/blogs/nicolae-chirea/2023/08/25/cmdb-ansible-1

    Best regards,



    ------------------------------
    Nicolae Chirea
    System architect
    Saytel Informatica SL
    Madrid
    +34607868409
    ------------------------------



  • 3.  RE: Ansible Content for IBM Power Systems - IBM i

    Posted Thu November 02, 2023 04:58 AM

    Hi Nicolae,

    Thanks for your input!

    What I am personally a little afraid of is that it maybe gets a little more complicated troubleshooting when things go wrong. I guess there is some way to return error messages from the LPAR to Ansible controller? 

    Regarding PFT handling, do you use the possibility to automatically check for and download PTF Groups to your "controlling" LPAR?

    Best Regards,
    Göran Nilsson



    ------------------------------
    Göran Nilsson
    ------------------------------



  • 4.  RE: Ansible Content for IBM Power Systems - IBM i

    Posted Thu November 02, 2023 05:15 AM

    If you require more control over Ansible, including aspects like logs, security, scheduling, and more, I highly recommend starting with AWX (GUI for Ansible), an open-source platform that is freely available. Once you become comfortable with it and your projects expand, consider transitioning to the RedHat Automation Platform (subscription based with support from RedHat).

    Regarding PTF's, I haven't used the option to automatically check and download PTFs, yet.



    ------------------------------
    Nicolae Chirea
    System architect
    Saytel Informatica SL
    Madrid
    +34607868409
    ------------------------------



  • 5.  RE: Ansible Content for IBM Power Systems - IBM i

    Posted Fri November 03, 2023 03:25 AM

    Hej Göran, 

    Here is an good article in Swedish you can start with.. https://www.commonsweden.org/borja-med-ansible-pa-ibm-i/

    I've translated it into English as well (Ok from Håkan).. https://builtonpower.com/2023/09/start-with-redhat-ansible-on-ibm-i/

    Did you attend the Common Sweden conference earlier this week in Stockholm? There was some Ansible sessions there I think.. 



    ------------------------------
    Torbjörn Appehl
    ------------------------------



  • 6.  RE: Ansible Content for IBM Power Systems - IBM i

    Posted Wed November 08, 2023 02:40 AM

    Hej Torbjörn,

    Tack!
    Unfortunately I did not attend the Common Sweden conference.

    I have installed Ansible in an WSL environment on my PC and it seems to work fine. 
    I certainly see that there are time savings to be made using Ansible but on the other hand you can automate a lot of things using RDB, CL scripts and SQL procedures as well...

    Regards
    Göran Nilsson



    ------------------------------
    Göran Nilsson
    ------------------------------



  • 7.  RE: Ansible Content for IBM Power Systems - IBM i

    Posted Wed November 08, 2023 03:00 AM

    One of the benefits of using Ansible is to use a standard platform for automation. Today you often see a mix of the technologies you described which is more difficult to maintain. Also you most likely have a lot of Ansible expertise within CGI you can use for IBM i as well...

    Now plan to join us in Milan for Common Europe Congress 2024, the by far largest IBM i and IBM Power event of the year in Europe. 



    ------------------------------
    Torbjörn Appehl
    ------------------------------



  • 8.  RE: Ansible Content for IBM Power Systems - IBM i

    Posted Fri November 03, 2023 10:09 AM

    Please feel free to use my IBM I References Pages blog @ https://ibmireference.blogspot.com/

    There is an IBM i Ansible page.

     

    Respectfully,

    Michael Mayer
    IBM i on Power System Admin
    ERMCO-ECI
    2225 Industrial Rd
    Dyersburg, Tennessee 38024
    Office and OnCall: 731.676.4318
    Cell: 518.641.8906
    Email: 
    michael.mayer@ermco-eci.com
    https://www.ermco-eci.com  
    IBM i Personal Blog: https://ibmireference.blogspot.com          

      

     

     






  • 9.  RE: Ansible Content for IBM Power Systems - IBM i

    Posted Fri November 10, 2023 02:53 AM

    Thank you Michael!

    Best regards
    Göran Nilsson



    ------------------------------
    Göran Nilsson
    ------------------------------



  • 10.  RE: Ansible Content for IBM Power Systems - IBM i

    Posted Thu November 09, 2023 02:29 PM
    Edited by Andres Parada Mon November 13, 2023 09:24 AM

    Hi Goran,

    Not sure this is what you're looking for, but in case, you'll find below 2 lab guides that can be used for self-training. 

    These examples focus on some of the IBM i ansible modules available on GitHub and ansible Galaxy (community support), and Red Hat Ansible Collection (Red Hat supported). The ansible control node can be IBM i (IBM Open Source support option)  or Linux (Red Hat support with subscriptions). On top, ansible AWX (free) or Red Hat Ansible Automation Platform (AAP) is a good solution for ansible access control, audit logs, etc. (mentioned in Lab #2).

    These materials can help you get started quicker, but do not replace the official ansible and 'ansible for IBM i' documentation. 

    Please reach out if any questions.



    ------------------------------
    Benoit Marolleau
    ------------------------------



  • 11.  RE: Ansible Content for IBM Power Systems - IBM i

    Posted Mon November 13, 2023 01:23 AM

    Thanks Benoit!

    Regards
    Göran Nilsson



    ------------------------------
    Göran Nilsson
    ------------------------------