playbook: system-upgrade.yml

This commit is contained in:
2024-11-16 14:32:12 +01:00
parent 95af19a3ce
commit d94bcc94e4
4 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
### runnning against default hosts
ansible-playbook --ask-become-pass system-upgrade.yml

View File

@@ -1,3 +1,7 @@
[defaults]
inventory=inventory
private_key_file=~/.ssh/id_ed25519
[tiijay]
inventory=inventory2
private_key_file=~/.ssh/id_ed25519

View File

@@ -1,3 +1,4 @@
[default]
j-agent-01
j-agent-02
j-agent-03
@@ -6,3 +7,7 @@ docker-registry
jenkins
gitea
pihole
[tiijay]
microk8s
nginx

9
system-upgrade.yml Normal file
View File

@@ -0,0 +1,9 @@
---
- hosts: default
become: true
tasks:
- name: update respository index
apt:
update_cache: yes