Ensure freshness check is proper
This commit is contained in:
parent
be091f66d4
commit
7cac7b26ce
|
@ -51,7 +51,7 @@
|
||||||
- name: check freshness
|
- name: check freshness
|
||||||
command: /usr/sbin/needrestart -p
|
command: /usr/sbin/needrestart -p
|
||||||
register: freshness
|
register: freshness
|
||||||
changed_when: freshness.rc == 1
|
changed_when: freshness.rc >= 1
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: restart system cleanly
|
- name: restart system cleanly
|
||||||
|
|
Loading…
Reference in New Issue