19 lines
405 B
YAML
19 lines
405 B
YAML
|
---
|
||
|
- name: Update
|
||
|
become: yes
|
||
|
become_method: sudo
|
||
|
pacman:
|
||
|
update_cache: yes
|
||
|
upgrade: yes
|
||
|
when: ansible_os_family == "Archlinux"
|
||
|
|
||
|
- name: Check if a reboot is required
|
||
|
register: reboot_required_file
|
||
|
stat:
|
||
|
path: /var/run/reboot-required get_md5=no
|
||
|
|
||
|
- name: Needs Reboot
|
||
|
debug:
|
||
|
msg: "Restart Required!!"
|
||
|
ignore_errors: true
|
||
|
when: reboot_required_file.stat.exists == true
|