From e87d3b0f352ae0d2a234c593f273ef70afe7ad1d Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 2 Sep 2020 22:04:17 -0500 Subject: [PATCH] Add more package to ansible role on Alpine --- localhost-deploy.sh | 2 +- roles/ansible/tasks/main.yml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/localhost-deploy.sh b/localhost-deploy.sh index 27aeaf7..4f10970 100755 --- a/localhost-deploy.sh +++ b/localhost-deploy.sh @@ -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 diff --git a/roles/ansible/tasks/main.yml b/roles/ansible/tasks/main.yml index 6e1905e..c7abd8c 100644 --- a/roles/ansible/tasks/main.yml +++ b/roles/ansible/tasks/main.yml @@ -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