shalomb.ansible_bootstrap_python2
ansible-bootstrap-python2
NOTE: This role is no longer actively maintained as Python 2.x is now EOL. PRs are still welcome if nominal.
Ansible role to bootstrap the installation of python 2.x when it is not available.
As ansible depends on python 2.x for normal execution, this role
performs the installation of python making use of distro-specific
installation commands under the
raw
module.
Requirements
- To succeed, the enclosing play has to ensure
gather_facts: False
Role Variables
refresh_repositories: False
Refresh/Update the package cache before installation, it is necessary
to set this to True when targets are created from slim/docker images.
Example Playbook
- name: Install python-minimal
hosts: all
any_errors_fatal: True
gather_facts: no
become: True
roles:
- name: ansible-bootstrap-python2
refresh_repositories: True
tags:
- bootstrap
- python2
Also see tests/test.yml for better examples.
Install
ansible-galaxy install shalomb.ansible_bootstrap_python2License
Unknown
Downloads
47
Owner
{Cloud,DevOps,Agile}
