How do i install Ansible using virtualenv

0 votes
How do I install Ansible using virtualenv?
Jan 10 in Ansible by Anurag
84 views

2 answers to this question.

0 votes

Depends on which environment you need to install. 

For Mac:

sudo easy_install pip
sudo pip install --upgrade pip
pip install virtualenv
answered Jan 10 by Mohit
0 votes

Adding to @Mohit's answer, 

For CentOS and RHEL:

sudo yum install python-virtualenv

For ubuntu:

sudo apt install python-virtualenv

Once you've installed you create a virtual environment

virtualenv myansible
source myansible/bin/activate

Now install ansible

pip install ansible

answered Jan 10 by Dikinson

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do I update CentOS using Ansible?

You can use the yum module in the ...READ MORE

answered Feb 4 in Ansible by Diana
38 views
0 votes
1 answer

How do I install Ansible on Ubuntu?

Hey Kiara, Execute the following commands to Install ...READ MORE

answered Feb 20 in Ansible by Kunal
30 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How do I access environment variables in Ansible?

Yes @Nagray, you're right! You can access ...READ MORE

answered Jan 24 in Ansible by Tessie
411 views
0 votes
1 answer