Update and upgrade apk packages
This commit is contained in:
parent
cfcf91a010
commit
86ada4aa3d
@ -14,7 +14,7 @@ if ! command -v ansible > /dev/null 2>&1; then
|
|||||||
sudo apt-get install python3-pip python3-setuptools -y
|
sudo apt-get install python3-pip python3-setuptools -y
|
||||||
elif command -v apk > /dev/null 2>&1; then
|
elif command -v apk > /dev/null 2>&1; then
|
||||||
printf "Installing via APK\n"
|
printf "Installing via APK\n"
|
||||||
sudo apk add py3-pip py3-setuptools
|
sudo apk add gcc py3-pip py3-setuptools
|
||||||
else
|
else
|
||||||
printf "No supported package manager found\nPlease install Ansible manually"
|
printf "No supported package manager found\nPlease install Ansible manually"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
block:
|
block:
|
||||||
- name: Update and upgrade apt packages
|
- name: Update and upgrade apt packages
|
||||||
apt:
|
apt:
|
||||||
upgrade: "yes"
|
upgrade: yes
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
# One day
|
# One day
|
||||||
cache_valid_time: 86400
|
cache_valid_time: 86400
|
||||||
@ -34,10 +34,15 @@
|
|||||||
when: ansible_distribution == "Ubuntu"
|
when: ansible_distribution == "Ubuntu"
|
||||||
- name: Install packages via APK
|
- name: Install packages via APK
|
||||||
block:
|
block:
|
||||||
|
- name: Update and upgrade packages
|
||||||
|
apk:
|
||||||
|
upgrade: yes
|
||||||
|
update_cache: yes
|
||||||
- name: Install basic packages
|
- name: Install basic packages
|
||||||
apk:
|
apk:
|
||||||
name:
|
name:
|
||||||
- coreutils
|
- coreutils
|
||||||
|
- gcc
|
||||||
- git
|
- git
|
||||||
- htop
|
- htop
|
||||||
- ncdu
|
- ncdu
|
||||||
|
Loading…
Reference in New Issue
Block a user