How do i install Ansible using virtualenv

0 votes
How do I install Ansible using virtualenv?
Jan 10, 2019 in Ansible by Anurag
5,467 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, 2019 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, 2019 by Dikinson

Related Questions In Ansible

0 votes
1 answer

How do I wget a file from web server using shell in the ansible playbook

Hey Ayaan, you could probably use this ...READ MORE

answered Jan 24, 2019 in Ansible by Anushri
4,102 views
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, 2019 in Ansible by Diana
3,909 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, 2019 in Ansible by Kunal
779 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,949 views
+2 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, 2019 in Ansible by Tessie
8,490 views
0 votes
1 answer

How do I get an ENV variable and store it into a local variable - Ansible

Hey @Ninja, that is possible. What you ...READ MORE

answered Jan 24, 2019 in Ansible by Thomas
2,474 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP