- hosts: all
tasks:
# Update to the latest kernel to allow installing kernel-* packages
# matching the running kernel version.
# See: https://pagure.io/fedora-ci/general/issue/162
# May be removed once the issue above is resolved.
- name: Update kernel packages and reboot
block:
- name: Update kernel-core
shell: dnf update -y kernel-core
- name: Restart host
shell: sleep 2 && shutdown -r now "Ansible updates triggered"
async: 1
poll: 0
ignore_errors: true
- name: Wait for host to come back
wait_for_connection:
delay: 10
timeout: 300