Switch to python3 for ansible
This commit is contained in:
3
Makefile
3
Makefile
@@ -15,8 +15,7 @@ clean:
|
|||||||
$(ansible): venv
|
$(ansible): venv
|
||||||
|
|
||||||
venv:
|
venv:
|
||||||
command -v virtualenv || sudo dnf install -y python3-virtualenv || sudo apt-get -y install virtualenv
|
python3 -m venv $(venv)
|
||||||
virtualenv --no-site-packages --python=python2 $(venv)
|
|
||||||
$(activate) && $(pip) install -r $(requirements)
|
$(activate) && $(pip) install -r $(requirements)
|
||||||
|
|
||||||
freeze:
|
freeze:
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
dnf:
|
dnf:
|
||||||
state: installed
|
state: installed
|
||||||
name:
|
name:
|
||||||
- python2-libselinux
|
- python3-libselinux
|
||||||
- policycoreutils-python
|
- policycoreutils-python-utils
|
||||||
become: true
|
become: true
|
||||||
when: distro == 'fedora'
|
when: distro == 'fedora'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user