https://github.com/shalomb/ansible-bootstrap-python2
Ansible role to boostrap the install of python2
https://github.com/shalomb/ansible-bootstrap-python2
ansible ansible-role bootstrap python python2 raw
Last synced: about 2 months ago
JSON representation
Ansible role to boostrap the install of python2
- Host: GitHub
- URL: https://github.com/shalomb/ansible-bootstrap-python2
- Owner: shalomb
- Created: 2018-02-20T23:07:01.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2021-03-25T10:22:14.000Z (about 4 years ago)
- Last Synced: 2025-01-10T14:52:57.733Z (4 months ago)
- Topics: ansible, ansible-role, bootstrap, python, python2, raw
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ansible-bootstrap-python2
=========================- [`master`](https://github.com/shalomb/ansible-bootstrap-python2/tree/master) [](https://travis-ci.org/shalomb/ansible-bootstrap-python2/branches)
- [`develop`](https://github.com/shalomb/ansible-bootstrap-python2/tree/develop) [](https://travis-ci.org/shalomb/ansible-bootstrap-python2/branches)**NOTE:** This role is no longer actively maintained as Python 2.x is now [EOL](https://pythonclock.org/).
PRs are still welcome if nominal.Ansible role to
[bootstrap the installation of python
2.x](https://gist.github.com/gwillem/4ba393dceb55e5ae276a87300f6b8e6f#gistcomment-2167540)
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`](http://docs.ansible.com/ansible/latest/raw_module.html)
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
- python2Also see [tests/test.yml](tests/test.yml) for better examples.