diff options
author | uvok cheetah | 2024-07-06 15:41:21 +0200 |
---|---|---|
committer | uvok cheetah | 2024-07-06 15:41:21 +0200 |
commit | e141d13ee7e6e16c5a3cb6f10c59a07cac3ec0d8 (patch) | |
tree | 585d7bf7889ea02d4c81694553d7f4a7b4aff411 | |
parent | 021991e5cb1fb84857f8aa69566d38200510d53f (diff) |
Add "reboot reuired" warning
-rw-r--r-- | root_reboot.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/root_reboot.yml b/root_reboot.yml new file mode 100644 index 0000000..b4122dc --- /dev/null +++ b/root_reboot.yml @@ -0,0 +1,11 @@ +--- +- name: Make sure reboot message is shown + hosts: server + gather_facts: false + tasks: + - name: Add line + lineinfile: + path: ~/.profile + state: present + search_string: "[[ -f /var/run/reboot-required ]] && echo '\\n*** You need to reboot *** \\n'" + line: "[[ -f /var/run/reboot-required ]] && echo && echo '*** You need to reboot ***'" |