Update and upgrade apk packages

This commit is contained in:
Salt 2020-09-02 18:15:57 -05:00
parent cfcf91a010
commit 86ada4aa3d
2 changed files with 7 additions and 2 deletions

View File

@ -14,7 +14,7 @@ if ! command -v ansible > /dev/null 2>&1; then
sudo apt-get install python3-pip python3-setuptools -y
elif command -v apk > /dev/null 2>&1; then
printf "Installing via APK\n"
sudo apk add py3-pip py3-setuptools
sudo apk add gcc py3-pip py3-setuptools
else
printf "No supported package manager found\nPlease install Ansible manually"
exit 1

View File

@ -5,7 +5,7 @@
block:
- name: Update and upgrade apt packages
apt:
upgrade: "yes"
upgrade: yes
update_cache: yes
# One day
cache_valid_time: 86400
@ -34,10 +34,15 @@
when: ansible_distribution == "Ubuntu"
- name: Install packages via APK
block:
- name: Update and upgrade packages
apk:
upgrade: yes
update_cache: yes
- name: Install basic packages
apk:
name:
- coreutils
- gcc
- git
- htop
- ncdu