From d9f88feca55848d91bb634040ec68dca9822a43f Mon Sep 17 00:00:00 2001 From: MrDoobPG <46342172+MrDoobPG@users.noreply.github.com> Date: Sat, 7 Dec 2019 00:23:41 +0100 Subject: [PATCH] Update main.yml --- menu/roles/update/tasks/main.yml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/menu/roles/update/tasks/main.yml b/menu/roles/update/tasks/main.yml index 3ba734c..b2e0be7 100644 --- a/menu/roles/update/tasks/main.yml +++ b/menu/roles/update/tasks/main.yml @@ -1,17 +1,4 @@ --- -- name: for {{ansible_hostname}} || check for old reboot is needed - stat: path=/var/run/reboot-required - register: file_reboot_before - -- debug: - msg: - - "There is the possibility that an older reboot is already necessary for {{ansible_hostname}}" - - "This is needed to process all updates and upgrades of the system." - when: file_reboot_before.stat.exists == True - -- meta: end_play - when: file_reboot_before.stat.exists - - name: for {{ansible_hostname}} || Update packages to latest versions on {{ansible_hostname}} apt: update_cache: yes