Merge pull request #51 from Zash/ansiblepy3
Switch Ansible to Python 3, remove Python 2
This commit is contained in:
commit
94d0113a2e
|
@ -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/* \
|
||||
|
|
Loading…
Reference in New Issue