https://github.com/savoirfairelinux/ansible-ansible-install
Installs ansible on the target host, possibly in a virtualenv
https://github.com/savoirfairelinux/ansible-ansible-install
Last synced: 25 days ago
JSON representation
Installs ansible on the target host, possibly in a virtualenv
- Host: GitHub
- URL: https://github.com/savoirfairelinux/ansible-ansible-install
- Owner: savoirfairelinux
- License: gpl-3.0
- Created: 2016-05-24T18:23:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-21T20:09:38.000Z (over 7 years ago)
- Last Synced: 2024-12-26T18:23:17.626Z (6 months ago)
- Size: 13.7 KB
- Stars: 2
- Watchers: 11
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# ansible-install
*Installs ansible on the target host, possibly in a virtualenv*
## Requirements
* Ansible 2.0+
* Debian jessie target## What it does
Eventually, it will take care of any ansible installation scenario, but for now, it handles only
one: installing ansible with pip in an isolated virtualenv.Before doing that, we make sure that the system has all the system packages we need.
You'll see that we explicitly install setuptools in our `pip` call. That's because on debian
jessie, the system version of setuptools is too old to properly install `cryptography`, one of
ansible's dependency. That's why we have to do this whole dance. Otherwise, we could simply
pip-install ansible globally and call it a day.## Example
```
- role: ansible-install
ansible_install_virtualenv_path: /root/ansibleenv
ansible_install_versionspec: ">=2.0,<2.1"
```