klips/ansible/plays/apt-up.yml

18 lines
393 B
YAML
Raw Permalink Normal View History

---
2020-06-12 04:35:55 +00:00
- hosts: nginx-server
become: yes
tasks:
- name: Ensure package lists are up-to-date
apt:
update_cache: yes
- name: Ensure packages are up-to-date
apt:
upgrade: dist
- name: Remove unused packages from the cache
apt:
autoclean: yes
- name: Remove dependencies that are no longer required
apt:
autoremove: yes