Files
no-secrets-athq-ansible/upgrade-all.yaml

15 lines
362 B
YAML

---
- hosts: all
tasks:
- name: Update apt-get repo and cache
apt: update_cache=yes force_apt_get=yes cache_valid_time=3600
- name: Upgrade all apt packages
apt: upgrade=dist force_apt_get=yes
- name: Cleanup
apt:
autoclean: true
autoremove: true
- name: Cleanup shell
shell: |
apt autoremove -y