Skip to content

Commit

Permalink
linter and typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chuegel committed Nov 19, 2023
1 parent 4a9d87c commit 406df29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roles/update/tasks/system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@
- name: Check if a reboot is required
ansible.builtin.stat:
path: /var/run/reboot-required
get_md5: no
get_md5: false
register: reboot_required
changed_when: reboot_required.stat.exists
when: ansible_os_family == "Debian"
notify: "reboot host"

- name: Check if a reboot is required.
- name: Check if a reboot is required
ansible.builtin.command: needs-restarting -r
register: reboot_required
ignore_errors: true
failed_when: false
chnaged_when: reboot_required.rc != 0
when: ansible_os_family == "RedHat"
changed_when: reboot_required.rc != 0
when: ansible_os_family == "RedHat"
notify: "reboot host"

- name: Make sure handlers are flushed immediately
Expand Down

0 comments on commit 406df29

Please sign in to comment.