1
0
Fork 0

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:
Sheogorath 2020-07-06 00:35:01 +02:00
parent 10330144bb
commit bbd5323de4
No known key found for this signature in database
GPG key ID: C9B1C80737B9CE18

View file

@ -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