From 928983665bf795793130a4e5773a1ef87ec3cbe0 Mon Sep 17 00:00:00 2001 From: jacqueskingram Date: Fri, 7 Mar 2025 11:38:31 -0500 Subject: [PATCH] playbook added --- hosts | 2 +- update_upgrade.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts b/hosts index f8ff69f..221e230 100644 --- a/hosts +++ b/hosts @@ -1,2 +1,2 @@ [servers] -xochi.jacquesingram.online ansible_user=jacques +xochi.jacquesingram.online ansible_user=jacques ansible_connection=ssh diff --git a/update_upgrade.yaml b/update_upgrade.yaml index 77b7104..cdaab41 100644 --- a/update_upgrade.yaml +++ b/update_upgrade.yaml @@ -2,6 +2,7 @@ - hosts: servers # Targets the "servers" group defined in your inventory become: true # Important: This enables privilege escalation (sudo) become_user: root # Explicitly become root (optional, but good practice) + become_method: sudo tasks: - name: Update apt cache apt: