Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Dec 6, 2019
1 parent 2544598 commit d9f88fe
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions menu/roles/update/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d9f88fe

Please sign in to comment.