Disable warnings on dnf system-upgrade plugin calls

This commit is contained in:
Jason Rothstein 2021-03-28 05:02:16 +00:00
parent 6d5b7e7d33
commit d31dfe0469

View File

@ -70,6 +70,7 @@
- ensure_os_upgrade.package_list is iterable
- ensure_os_upgrade.target_version is defined
- ansible_distribution_major_version|int < ensure_os_upgrade.target_version|int
warn: 'false'
ansible.builtin.shell: >
dnf -y system-upgrade download --refresh --releasever={{ ensure_os_upgrade.target_version|int }}
- name: 'Ensure system-upgrade reboot'
@ -83,6 +84,7 @@
- ansible_distribution_major_version|int < ensure_os_upgrade.target_version|int
async: '1'
poll: '0'
warn: 'false'
ansible.builtin.shell: >
sleep 5 && dnf -y system-upgrade reboot
- name: 'Wait for the reboot'