sscheib.openwrt_bootstrap
openwrt_bootstrap
This project helps set up Python on OpenWrt devices by installing the necessary Python packages for Ansible.
Important Note:
- Python may not be installed on your
OpenWrtdevice initially. Make sure to turn off fact gathering in the playbook by settinggather_facts: false(you can refer to the example playbook).
Requirements
You need a device with enough storage to install either a full version of python3 or the minimum required Python packages:
python3-lightpython3-baselibffipython3-loggingpython3-multiprocessingpython3-distutilspython3-emailpython3-urllib
Role Variables
| Variable | Default | Required | Description |
|---|---|---|---|
bts_minimal_required_package |
See defaults/main.yml |
No | Minimum necessary packages for Ansible to function |
bts_full_required_packages |
['python3'] |
No | Packages for a full Python3 installation |
bts_install_full_python |
false |
No | Indicates if the full version of Python3 should be installed |
bts_update_opkg_cache |
true |
No | Indicates if the opkg cache should be updated before installing packages |
Dependencies
None
Example Playbook
---
- hosts: 'all'
gather_facts: false
vars:
install_full_python: true
roles:
- 'openwrt_bootstrap'
...
Contributing
Thank you for showing interest in contributing! ❤️
All kinds of contributions are welcome and appreciated.
For more information on how to help, refer to CONTRIBUTING.md.
License
Informazioni sul progetto
This role bootstraps Python on OpenWrt by installing the required Python packages for Ansible to run.
Installa
ansible-galaxy install sscheib.openwrt_bootstrapLicenza
gpl-2.0
Download
30k
Proprietario
Software Developer, Sysadmin, Linux and Open Source enthusiast
