update
This commit is contained in:
@@ -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
16
bump_servers.yml
Normal 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
|
||||
8
hosts
8
hosts
@@ -1,2 +1,8 @@
|
||||
[dockerhosts]
|
||||
docker-host-02.fritz.box ansible_ssh_private_key_file=~/.ssh/id_rsa_pve82-clients
|
||||
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
|
||||
Reference in New Issue
Block a user