maabara/playbooks/update_upgrade.yml

15 lines
345 B
YAML
Raw Normal View History

2024-09-01 20:26:50 +00:00
---
- name: Updates all managed servers
hosts: all
become: true
vars:
group_vars: groups_vars/servers.yml
tasks:
- name: update package index on all machines
ansible.builtin.apt:
update_cache: yes
- name: Upgrade all packages to latest version
ansible.builtin.apt:
name: "*"
state: latest