Trigger restart even with rc=3

This commit is contained in:
Joshua Boniface 2023-02-22 18:54:07 -05:00
parent 5f4c1ce8e6
commit edc76114c6
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@
- name: check freshness
command: /usr/sbin/needrestart -p
register: freshness
changed_when: freshness.rc >= 1 and freshness.rc < 3
changed_when: freshness.rc >= 1 and freshness.rc < 4
failed_when: false
- name: restart system cleanly