From e45ee57c250bc65b22c13b8bbad438d5cdc48e08 Mon Sep 17 00:00:00 2001 From: Jeff Riffle Date: Mon, 7 Apr 2025 14:50:49 -0500 Subject: [PATCH] create ansible playbook to update ubuntu on all nodes --- playbooks/apt-update.yaml | 7 +++++++ playbooks/command.txt | 1 + 2 files changed, 8 insertions(+) create mode 100644 playbooks/apt-update.yaml create mode 100644 playbooks/command.txt diff --git a/playbooks/apt-update.yaml b/playbooks/apt-update.yaml new file mode 100644 index 0000000..7157d6f --- /dev/null +++ b/playbooks/apt-update.yaml @@ -0,0 +1,7 @@ +- hosts: "*" + become: yes + tasks: + - name: apt + apt: + update_cache: yes + upgrade: 'yes' diff --git a/playbooks/command.txt b/playbooks/command.txt new file mode 100644 index 0000000..b4a1a8e --- /dev/null +++ b/playbooks/command.txt @@ -0,0 +1 @@ +ansible-playbook playbooks/apt.yaml --user someuser --ask-pass --ask-become-pass -i inventory/k3s-ansible/hosts.ini