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: