create ansible playbook to update ubuntu on all nodes

This commit is contained in:
Jeff Riffle 2025-04-07 14:50:49 -05:00
parent a7ac2a0d63
commit e45ee57c25
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,7 @@
- hosts: "*"
become: yes
tasks:
- name: apt
apt:
update_cache: yes
upgrade: 'yes'

1
playbooks/command.txt Normal file
View File

@ -0,0 +1 @@
ansible-playbook playbooks/apt.yaml --user someuser --ask-pass --ask-become-pass -i inventory/k3s-ansible/hosts.ini