update-system/tasks/update-Arch.yml
Tobias Trabelsi 7f90530e81
Some checks reported errors
continuous-integration/drone/push Build was killed
init
2021-01-30 19:50:13 +01:00

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