Replace deprecated get_md5 witch get_checksum

The get_md5 for stat is unsupported and get_md5=no doesn't work with ansible 9.3.0.
This commit is contained in:
Martin Sloup 2024-03-17 10:08:30 +01:00 committed by GitHub
parent 86447d24f0
commit e6251a6cc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@
- name: Check if a reboot is needed on all servers - name: Check if a reboot is needed on all servers
register: reboot_required_file register: reboot_required_file
stat: path=/var/run/reboot-required get_md5=no stat: path=/var/run/reboot-required get_checksum=false
- name: Reboot the box if kernel updated - name: Reboot the box if kernel updated
reboot: reboot:
@ -20,4 +20,4 @@
pre_reboot_delay: 0 pre_reboot_delay: 0
post_reboot_delay: 30 post_reboot_delay: 30
test_command: uptime test_command: uptime
when: reboot_required_file.stat.exists when: reboot_required_file.stat.exists