mirror of
https://github.com/ruanbekker/rpi-ansible.git
synced 2025-04-20 17:21:44 +02:00
fix incompatibility between local venv and system python
This commit is contained in:
parent
12ee1e2bc8
commit
5317dcc0f9
@ -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
|
playbook relies on Ansible 2.8 or newer, which means you can no longer use
|
||||||
`sudo apt-get install ansible`. Instead, you must
|
`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
|
$ source ./ansible_env/bin/activate
|
||||||
|
|
||||||
(ansible) $ which pip
|
(ansible_env) $ which pip
|
||||||
/home/pi/src/git/rpi-ansible/ansible/bin/pip
|
/home/pi/src/git/rpi-ansible/ansible/bin/pip
|
||||||
|
|
||||||
(ansible) $ pip install ansible
|
(ansible_env) $ sudo $(which ansible-playbook) ./local.yml
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user