ansible-playbooks/roles/tasks/debian/update.yml

15 lines
332 B
YAML
Raw Normal View History

2024-10-25 17:35:21 +08:00
---
2024-10-25 20:36:12 +08:00
- hosts:
- debian
2024-10-25 17:35:21 +08:00
# Runs on root user already
become: false
tasks:
- name: Update all packages
apt:
update_cache: true
autoremove: true
state: latest
2024-10-25 22:35:10 +08:00
when: ansible_distribution in ["Debian"]
2024-10-25 17:35:21 +08:00
- name: Update ACME
command: /root/.acme.sh/acme.sh --upgrade --auto-upgrade