Browse Source

playbook added

master
jacqueskingram 3 months ago
parent
commit
928983665b
  1. 2
      hosts
  2. 1
      update_upgrade.yaml

2
hosts

@ -1,2 +1,2 @@
[servers]
xochi.jacquesingram.online ansible_user=jacques
xochi.jacquesingram.online ansible_user=jacques ansible_connection=ssh

1
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:

Loading…
Cancel
Save