You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloud-images/ansible/roles/upgrade_and_reboot/tasks/main.yml

15 lines
394 B

---
- name: Upgrade packages
ansible.builtin.dnf:
name: '*'
state: latest
register: system_upgrade
- name: Reboot host
ansible.builtin.reboot:
connect_timeout: "{{ reboot_connect_timeout }}"
pre_reboot_delay: "{{ reboot_pre_reboot_delay }}"
post_reboot_delay: "{{ reboot_post_reboot_delay }}"
reboot_timeout: "{{ reboot_timeout }}"
when: system_upgrade.changed