generated from GamingChaos/ansible-repository-template
Compare commits
No commits in common. "36fa8940313151dd213ef1f1d94458d514e55e83" and "302d148015fef10576768a5999908092a3a9a4fd" have entirely different histories.
36fa894031
...
302d148015
11
homelab
11
homelab
@ -1,11 +0,0 @@
|
||||
[ubuntu]
|
||||
charybdis.stuyckv.local
|
||||
millim.stuyckv.local
|
||||
ramiris.stuyckv.local
|
||||
shion.stuyckv.local
|
||||
|
||||
[proxmox]
|
||||
rimeru.stuyckv.local
|
||||
|
||||
[truenas]
|
||||
veldora.stuyckv.local
|
||||
@ -1,25 +0,0 @@
|
||||
---
|
||||
# source: https://www.jeffgeerling.com/blog/2022/ansible-playbook-upgrade-ubuntudebian-servers-and-reboot-if-needed
|
||||
- hosts: ubuntu:proxmox
|
||||
gather_facts: yes
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
- name: Perform a dist-upgrade.
|
||||
ansible.builtin.apt:
|
||||
upgrade: dist
|
||||
update_cache: yes
|
||||
|
||||
- name: Check if a reboot is required.
|
||||
ansible.builtin.stat:
|
||||
path: /var/run/reboot-required
|
||||
get_checksum: no
|
||||
register: reboot_required_file
|
||||
|
||||
- name: Reboot the server (if required).
|
||||
ansible.builtin.reboot:
|
||||
when: reboot_required_file.stat.exists == true
|
||||
|
||||
- name: Remove dependencies that are no longer required.
|
||||
ansible.builtin.apt:
|
||||
autoremove: yes
|
||||
Loading…
x
Reference in New Issue
Block a user