Remove warn because ansible cannot handle both a warn and ansible.builting.shell ?!

This commit is contained in:
Jason Rothstein 2021-03-28 05:24:30 +00:00
parent d31dfe0469
commit 6135f62e31

View File

@ -70,7 +70,6 @@
- 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'
@ -84,7 +83,6 @@
- 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'