Merge pull request #51 from Zash/ansiblepy3

Switch Ansible to Python 3, remove Python 2
This commit is contained in:
Matthew Wild 2021-07-31 14:23:53 +01:00 committed by GitHub
commit 94d0113a2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -24,15 +24,15 @@ RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
software-properties-common ca-certificates \
gpg gpg-agent \
ansible python-passlib python3-passlib \
ansible python3-passlib \
libcap2-bin build-essential\
&& c_rehash \
&& ansible-playbook -c local -i localhost, --extra-vars "ansible_python_interpreter=/usr/bin/python2" /opt/ansible/snikket.yml \
&& ansible-playbook -c local -i localhost, --extra-vars "ansible_python_interpreter=/usr/bin/python3" /opt/ansible/snikket.yml \
&& apt-get remove -y \
ansible \
software-properties-common \
gpg gpg-agent \
python-passlib python3-passlib \
python3-passlib \
mercurial libcap2-bin build-essential \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* \