notthebee / ansible-easy-vpn

An Ansible playbook that sets up a Wireguard server with ad blocking, DNS-over-HTTPS, and a WebUI with 2FA
Other
996 stars 237 forks source link

Rerunning bootstrap.sh as new user makes ansible use old python path (bad interpreter: Permission denied) #282

Open gratituliarity opened 3 months ago

gratituliarity commented 3 months ago

Describe the issue The playbook copies the ansible-easy-vpn dir to the new user account but it cannot be run from there. The Error states Permission denied because it still tries to use python from the old directory.

Logs

bootstrap.sh: /home/newUser/ansible-easy-vpn/.venv/bin/ansible-galaxy: /home/oldUser/ansible-easy-vpn/.venv/bin/python3: bad interpreter: Permission denied

Environment: