fix issues with updating motd if nodes needs restarted due to OS patch updates

This commit is contained in:
m0duspwnens
2019-11-19 10:06:52 -05:00
parent 767115c218
commit 09bf22c97a
3 changed files with 2 additions and 2 deletions

View File

@@ -2,3 +2,4 @@ needs_restarting:
module.run:
- mine.send:
- func: needs_restarting.check
- order: last

View File

@@ -8,4 +8,3 @@ patch_os:
pkg.uptodate:
- name: patch_os
- refresh: True
- onchanges_in: needs_restarting

View File

@@ -6,8 +6,8 @@
{%- set PLAYBOOK = salt['pillar.get']('master:playbook', '0') -%}
base:
'*':
- patch.needs_restarting
- patch.os.schedule
- patch.needs_restarting
- motd
'G@role:so-sensor':