leapp upgrade through automation

Latest response

leapp upgrade phase 1 done and it ask for reboot server , is there any way to get reboot after complete of leapp upgrade .

below is my playbook.

  • name: Perform leapp upgrade
    shell: |
    leapp upgrade
    register: leapp_upgrade
    debug:
    var: leapp_upgrade.stdout_lines

below is upgrade log file its ask "Please reboot your system" , server should auto reboot through playbook.

Packages", "Remove 94 Packages", "Downgrade 8 Packages", "", "Total size: 850 M", "DNF will only download packages, install gpg keys, and check the transaction.", "Downloading Packages:", "Running transaction check", "Transaction check succeeded.", "Running transaction test", "Transaction test succeeded.", "Complete!", "====> * add_upgrade_boot_entry", " Add new boot entry for Leapp provided initramfs.", "A reboot is required to continue. Please reboot your system.", "", "", "Debug output written to /var/log/leapp/leapp-upgrade.log", "", "============================================================", " REPORT ", "============================================================", "", "A report has been generated at /var/log/leapp/leapp-report.json", "A report has been generated at /var/log/leapp/leapp-report.txt", "", "============================================================", " END OF REPORT ", "============================================================", "", "Answerfile has been generated at /var/log/leapp/answerfile"]}

PLAY RECAP *********************************************************************
server1gold : ok=2 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Responses