ansible/playbooks/system/update.yaml

12 lines
225 B
YAML
Raw Normal View History

2024-10-10 23:30:37 +02:00
---
- name: Update system
2024-10-10 19:54:13 +02:00
hosts: servers
2024-10-10 23:55:47 +02:00
gather_facts: false
2024-10-10 19:54:13 +02:00
become: true
tasks:
2024-10-10 23:30:37 +02:00
- name: Update packages
ansible.builtin.apt:
upgrade: true
update_cache: true
2024-10-10 19:54:13 +02:00
cache_valid_time: 86400