Update update-apt-packages.yaml
This commit is contained in:
@@ -7,4 +7,14 @@
|
||||
update_cache: yes
|
||||
upgrade: dist
|
||||
autoremove: yes
|
||||
autoclean: yes
|
||||
autoclean: yes
|
||||
|
||||
- name: Check if a reboot is required
|
||||
ansible.builtin.stat:
|
||||
path: /var/run/reboot-required
|
||||
register: reboot_required_file
|
||||
|
||||
- name: Reboot the server if required
|
||||
ansible.builtin.reboot:
|
||||
reboot_timeout: 600
|
||||
when: reboot_required_file.stat.exists == true
|
||||
Reference in New Issue
Block a user