This commit is contained in:
baschno
2025-08-21 21:08:27 +02:00
parent 3705925783
commit c6b2262d40
3 changed files with 24 additions and 2 deletions

View File

@@ -2,4 +2,4 @@ ansible all -u basti -m ping -i ./hosts -vvv
ansible all -u basti -i ./hosts -p servers.yml
ansible-playbook servers.yml -i hosts
ansible-playbook bump_servers.yml -i hosts

16
bump_servers.yml Normal file
View File

@@ -0,0 +1,16 @@
---
- hosts: dockerhosts
tasks:
- name: Update all packages to their latest version
become: true
ansible.builtin.apt:
name: "*"
state: latest
- hosts: k3sprod
tasks:
- name: Update all packages to their latest version
become: true
ansible.builtin.apt:
name: "*"
state: latest

6
hosts
View File

@@ -1,2 +1,8 @@
[dockerhosts]
docker-host-02.fritz.box ansible_ssh_private_key_file=~/.ssh/id_rsa_pve82-clients
[k3sprod]
k3s-prod-master ansible_ssh_private_key_file=~/.ssh/ansible-inventory
k3s-prod-worker-1 ansible_ssh_private_key_file=~/.ssh/ansible-inventory
k3s-prod-worker-2 ansible_ssh_private_key_file=~/.ssh/ansible-inventory
k3s-prod-worker-3 ansible_ssh_private_key_file=~/.ssh/ansible-inventory