Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Not able to reboot the AIX LPAR through ansible automation platform

    Posted Mon January 29, 2024 09:51 AM

    We are not able to reboot the AIX LPAR with ansible automation platform, server has been rebooted but job never exited and continuously running. Please check and let us know if we are missing anything.

    Here is my ansible playbook.

    ---
    - name: "Reboot the machine"
      hosts: all
      gather_facts: no
      vars:
        log_file: "/tmp/ansible_reboot_debug.log"
        pre_reboot_delay_v: 0
        post_reboot_delay_v: 0
        reboot_timeout_v: 0
        test_command_v: ""
      collections:
        - ibm.power_aix
      tasks:

        - name: "reboot the machine"
          reboot:
                  pre_reboot_delay: "{{ pre_reboot_delay_v }}"
                  post_reboot_delay: "{{ post_reboot_delay_v }}"
                  reboot_timeout: "{{ reboot_timeout_v }}"
                  test_command: "{{ test_command_v }}"
          register: reboot_result

        - debug: var=reboot_result


     - OS: [e.g. AIX 7.2]
     - Python Version: [3.6]
     - OpenSSH Version: [3.0.10]

    ansible [core 2.15.4]
      config file = /etc/ansible/ansible.cfg
      configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
      ansible python module location = /usr/lib/python3.9/site-packages/ansible
      ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
      executable location = /usr/bin/ansible
      python version = 3.9.16 (main, May 31 2023, 12:21:58) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/usr/bin/python3.9)
      jinja version = 3.1.2
      libyaml = True



    ------------------------------
    Manoj Kumar
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Not able to reboot the AIX LPAR through ansible automation platform

    Posted Tue January 30, 2024 04:51 AM

    Hi Manoj,

    there is a thread with the similar question - https://community.ibm.com/community/user/power/discussion/reboot-aix-server-with-ansible-playbook-failed

    my solutions are in my linkedin post - https://www.linkedin.com/posts/aklyachkin_reboot-reboot-aix-machines-activity-7087733045494992897-4lq2



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------



  • 3.  RE: Not able to reboot the AIX LPAR through ansible automation platform

    Posted Tue January 30, 2024 10:45 AM

    Thanks Andrey for the update. We are aware about it.

    But earlier we were using ansible core and we have made the changes in ansible.cfg file and it was working but this time we are using ansible automation platform Console. 

    we already have the entry in ansible.cfg file but it's not working. It seems we are missing something here.



    ------------------------------
    Manoj Kumar
    ------------------------------