William-Yeh.alpine-python
William-Yeh.alpine-python for Ansible Galaxy
Summary
Role name in Ansible Galaxy: William-Yeh.alpine-python
This Ansible role has only one feature:
- Install specific version of Python (2 and/or 3) under Alpine Linux.
Since Alpine Linux doesn't install Python by default, this role provides an easy way to enable Ansible to manage Alpine Linux machines.
Role Variables
Mandatory variables
None.
Optional variables
User-configurable defaults:
# install Python 2?
# default = yes
alpine_python_2_enabled: true
# install Python 3?
# default = no
alpine_python_3_enabled: false
Fix Alpine Linux repo list in /etc/apk/repositories
?
alpine_python_fix_repo: false
Usage
Step 1: add role
Add role name William-Yeh.alpine-python
to your playbook file.
Step 2: add variables, if necessary
Set vars in your playbook file.
Simple example:
---
# file: simple-playbook.yml
- hosts: all
become: True
gather_facts: false
roles:
- William-Yeh.alpine-python
vars:
alpine_python_3_enabled: true
Dependencies
None.
License
Licensed under the MIT License. See the LICENSE file for details.
Install
ansible-galaxy install William-Yeh.alpine-python
License
mit
Downloads
133
Owner