fix incompatibility between local venv and system python

This commit is contained in:
Glenn K. Lockwood 2020-06-27 14:27:06 -07:00
parent 12ee1e2bc8
commit 5317dcc0f9

View File

@ -14,14 +14,14 @@ You will need ansible installed on the Raspberry Pi being configured. This
playbook relies on Ansible 2.8 or newer, which means you can no longer use
`sudo apt-get install ansible`. Instead, you must
$ python3 -m venv ansible_env
$ python3 -m venv --system-site-packages ansible_env
$ source ./ansible_env/bin/activate
(ansible) $ which pip
(ansible_env) $ which pip
/home/pi/src/git/rpi-ansible/ansible/bin/pip
(ansible) $ pip install ansible
(ansible_env) $ sudo $(which ansible-playbook) ./local.yml
## Configuration