From bbd5323de4ef2db622e501d34143660ad4ce1e71 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Mon, 6 Jul 2020 00:35:01 +0200 Subject: [PATCH] Fix missing python libraries Ansible reports: ``` Failed to import the required Python library (requests) on container's Python /usr/bin/python2. ``` This is due to missing libraries obviously as well as the fact that ansible runs in python2 not python 3 on debian. Therefore this patch rewrites the added lbiraries for influxdb and fixes the error message. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a8ddcbe..a1525b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,6 @@ RUN true \ && apt-get update \ && apt-get install -y software-properties-common \ && apt-add-repository --yes --update ppa:ansible/ansible \ - && apt-get install -y ansible python3-influxdb \ + && apt-get install -y ansible python-requests python-influxdb \ && apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/* \ && true