You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
362 B
12 lines
362 B
--- |
|
- 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) |
|
tasks: |
|
- name: Update apt cache |
|
apt: |
|
update_cache: yes |
|
|
|
- name: Upgrade packages |
|
apt: |
|
upgrade: yes
|
|
|