Is there a way to install ansible on osX in an isolated virtual environment? without having to setup a ubuntu VM?
I dont want the ansible binaries or whatever software it installs on osx to interfere with my working environment
Is there a way to install ansible on osX in an isolated virtual environment? without having to setup a ubuntu VM?
I dont want the ansible binaries or whatever software it installs on osx to interfere with my working environment
python3 -m venv venv
source venv/bin/activate
pip install ansible
ansible --version
ansible 2.9.9
config file = /Users/dnmvisser/.ansible.cfg
configured module search path =
['/Users/dnmvisser/.ansible/plugins/modules',
'/usr/share/ansible/plugins/modules']
ansible python module location =
/Users/dnmvisser/venv/lib/python3.7/site-packages/ansible
executable location = /Users/dnmvisser/venv/bin/ansible
python version = 3.7.3 (default, Sep 5 2019, 17:14:41) [Clang
11.0.0 (clang-1100.0.33.8)]
Thanks
but i got this
NAR33051M:Resources twong$ sudo python3 -m venv venv
Password:
Error: [Errno 1] Operation not permitted: ‘/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/venv’
pyenv: no such command `sh-activate’
NAR33051M:Resources twong$
NAR33051M:Resources twong$ sudo python3 -m venv venv
Password:
Error: [Errno 1] Operation not permitted:
'/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resour
ces/venv' pyenv: no such command `sh-activate'
Did you try it as written - without the "sudo"?
ok fixed the issue.
where is the venv stored? how do I remove it?
how do i enter the environment?
like this everytime I open a terminal?
source venv/bin/activate
how do i list what venv insgtalled and how do I remove
how do i exit?
when i try to. exit its stuck on this
(venv) NAR33051M:~ twong$ venv
-bash: venv: command not found
(venv) NAR33051M:~ twong$ virtualenv
-bash: virtualenv: command not found
(venv) NAR33051M:~ twong$ ansible
(venv) NAR33051M:~ twong$ exit
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.
[Process completed]
This is a support list for problems related to ansible, not for basic system administration help.
Instead of copy pasting commands please do a little bit of effort yourself and at least try to understand what they mean.
If you spend one minute on google you will find the answers to all your questions. Please also do that before posting future questions here.
One advice for now, if you do copy paste commands without knowing what they mean, certainly not use sudo.