update-system/tasks/update-Arch.yml

19 lines
405 B
YAML
Raw Normal View History

2021-01-30 18:50:13 +00:00
---
- 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