Ignore needrestart unknown case
This commit is contained in:
parent
7b51fe0d00
commit
3ee4e7cd3f
|
@ -51,7 +51,7 @@
|
|||
- name: check freshness
|
||||
command: /usr/sbin/needrestart -p
|
||||
register: freshness
|
||||
changed_when: freshness.rc >= 1
|
||||
changed_when: freshness.rc >= 1 and freshness.rc < 3
|
||||
failed_when: false
|
||||
|
||||
- name: restart system cleanly
|
||||
|
|
Loading…
Reference in New Issue