Add more package to ansible role on Alpine

This commit is contained in:
Salt 2020-09-02 22:04:17 -05:00
parent 4b543de41e
commit e87d3b0f35
2 changed files with 5 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 gcc musl-dev py3-criptography py3-pip py3-setuptools
sudo apk add gcc musl-dev py3-cryptography py3-pip py3-setuptools
else
printf "No supported package manager found\nPlease install Ansible manually"
exit 1

View File

@ -16,10 +16,13 @@
- name: Install Ansible-required packages via apk
apk:
name:
- py3-pip
- gcc
- musl-dev
- py3-boto
- py3-boto3
- py3-botocore
- py3-cryptography
- py3-pip
- py3-setuptools
when: ansible_distribution == "Alpine"
- name: Install Ansible-required packages via pip