Ansible can be installed via pip, the Python package manager. If pip isn’t already available on your system of Python, run the following commands to install it:
$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
$ python get-pip.py --user
Then install Ansible.
$ pip install --user ansible
Or if you are looking for the latest development version:
$ pip install --user git+https://github.com/ansible/ansible.git@devel
If you are installing on macOS Mavericks (10.9), you may encounter some noise from your compiler. A workaround is to do the following:
$ CFLAGS=-Qunused-arguments CPPFLAGS=-Qunused-arguments pip install --user ansible
In order to use the paramiko connection plugin or modules that require paramiko, install the required module.
$ pip install --user paramiko
Ansible can also be installed inside a new or existing virtualenv:
$ python -m virtualenv ansible # Create a virtualenv if one does not already exist
$ source ansible/bin/activate # Activate the virtual environment
$ pip install ansible
If you wish to install Ansible globally, run the following commands:
$ sudo python get-pip.py
$ sudo pip install ansible
$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
$ python get-pip.py --user
Then install Ansible.
$ pip install --user ansible
Or if you are looking for the latest development version:
$ pip install --user git+https://github.com/ansible/ansible.git@devel
If you are installing on macOS Mavericks (10.9), you may encounter some noise from your compiler. A workaround is to do the following:
$ CFLAGS=-Qunused-arguments CPPFLAGS=-Qunused-arguments pip install --user ansible
In order to use the paramiko connection plugin or modules that require paramiko, install the required module.
$ pip install --user paramiko
Ansible can also be installed inside a new or existing virtualenv:
$ python -m virtualenv ansible # Create a virtualenv if one does not already exist
$ source ansible/bin/activate # Activate the virtual environment
$ pip install ansible
If you wish to install Ansible globally, run the following commands:
$ sudo python get-pip.py
$ sudo pip install ansible
No comments:
Post a Comment