ansible-playbooks/update.yml

17 lines
412 B
YAML
Raw Normal View History

2024-10-25 17:35:21 +08:00
---
2024-10-25 20:36:12 +08:00
- hosts:
- debian
- ubuntu
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
when: ansible_distribution in ["Debian", "Ubuntu"]
2024-10-25 17:35:21 +08:00
- name: Update ACME
command: /root/.acme.sh/acme.sh --upgrade --auto-upgrade
when: ansible_distribution in ["Debian", "Ubuntu"]