FGtatsuro.python-requirements
ansible-python-requirements
This is an Ansible role that sets up what you need for Python tasks in Ansible.
Requirements
These are the required software or libraries for this role.
- Debian
- Alpine Linux
- OSX
- Homebrew (version 0.9.5 or higher)
Role Variables
Here are the variables you can use in this role.
Name | Description | Type | Default |
---|---|---|---|
python_requirements_update_existing_pip | If set to true, the existing pip will be updated to the latest version. This runs sudo pip install -U pip . Also, it creates a symlink at /usr/bin/python if it doesn't exist, to avoid errors with the Ansible pip module when the executable parameter is not set. |
bool | no |
- Error messages related to
python_requirements_update_existing_pip
will be ignored for various reasons. Make sure to check the results if you set this to 'yes'.
Role Dependencies
This role depends on other roles.
Example Playbook
- hosts: all
roles:
- { role: FGtatsuro.python-requirements }
Test on Local Docker Host
This project uses Travis CI for tests, but you can also run tests on your local Docker host. Check the install
, before_script
, and script
sections in .travis.yml
for steps to follow.
Local requirements are:
- Ansible (version 2.0.0 or higher)
- Docker (version 1.10.1 or higher)
Notes
For OSX users, note that:
- This role uses the latest version of OpenSSL from the Homebrew repository instead of the pre-installed version.
License
MIT
Installa
ansible-galaxy install FGtatsuro.python-requirements
Licenza
mit
Download
92.1k
Proprietario