ansible-playbooks/ubuntu/roles/apt-maintenance/files/apt-maintenance.sh

9 lines
139 B
Bash

#!/usr/bin/env bash
# Update repositories
apt-get update
# Update packages
apt-get -y upgrade
# Autoremove packages
apt-get -y autoremove