Skip to content

Commit 0a2be1e

Browse files
author
mafyuh
committedAug 2, 2024
Add ansible/playbooks/main-reboot-required.yml
1 parent d75c527 commit 0a2be1e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
- name: check if system reboot is required
3+
hosts: "*"
4+
become: yes
5+
tasks:
6+
- name: check if system reboot is required
7+
become: true
8+
stat:
9+
path: /var/run/reboot-required
10+
register: reboot_required
11+
- debug:
12+
msg: "Reboot is required"
13+
when: reboot_required.stat.exists

0 commit comments

Comments
 (0)
Please sign in to comment.