Compare commits

..

No commits in common. "36fa8940313151dd213ef1f1d94458d514e55e83" and "302d148015fef10576768a5999908092a3a9a4fd" have entirely different histories.

2 changed files with 0 additions and 36 deletions

11
homelab
View File

@ -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

View File

@ -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