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.
This commit is contained in:
parent
10330144bb
commit
bbd5323de4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue