From e6251a6cc518d4839e500a8e3436e1e7d2ff81ae Mon Sep 17 00:00:00 2001 From: Martin Sloup Date: Sun, 17 Mar 2024 10:08:30 +0100 Subject: [PATCH] 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. --- Ansible/Playbooks/Update/update.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ansible/Playbooks/Update/update.yml b/Ansible/Playbooks/Update/update.yml index f1df4dd..a87ace6 100644 --- a/Ansible/Playbooks/Update/update.yml +++ b/Ansible/Playbooks/Update/update.yml @@ -10,7 +10,7 @@ - name: Check if a reboot is needed on all servers 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 reboot: @@ -20,4 +20,4 @@ pre_reboot_delay: 0 post_reboot_delay: 30 test_command: uptime - when: reboot_required_file.stat.exists \ No newline at end of file + when: reboot_required_file.stat.exists