sscheib.openwrt_bootstrap

ansible-lint Publish to Ansible Galaxy markdown link check markdownlint pyspelling commitlint

pre-commit Conventional Commits License: GPL v2

openwrt_bootstrap

OpenWrtデバイスでPythonをブートストラップし、Ansibleが動作するために必要なPythonパッケージをインストールします。

注意してください:

  • Pythonがこの時点でOpenWrtデバイスにインストールされていない可能性があるため、プレイブックで事実取得を無効にしてください(gather_facts: false - 例のプレイブックを参照)

要件

完全なpython3インストールまたは最小限のPython依存関係を保持するのに十分なフラッシュストレージスペースを持つデバイスが必要です:

  • python3-light
  • python3-base
  • libffi
  • python3-logging
  • python3-multiprocessing
  • python3-distutils
  • python3-email
  • python3-urllib

ロール変数

変数名 デフォルト 必須 説明
bts_minimal_required_package defaults/main.ymlを参照 false Ansibleが動作するための最小限の必須パッケージ
bts_full_required_packages ['python3'] false Python3完全インストールパッケージ
bts_install_full_python false false 完全なPython3バージョンをインストールするかどうか
bts_update_opkg_cache true false パッケージをインストールする前にopkgキャッシュを更新するかどうか

依存関係

なし

例のプレイブック

---
- hosts: 'all'
  gather_facts: false
  vars:
    install_full_python: true
  roles:
    - 'openwrt_bootstrap'
...

貢献

まず、貢献していただきありがとうございます! ❤️

あらゆる種類の貢献が奨励されており、高く評価されています。 このプロジェクトが貢献をどのように扱うかについては、CONTRIBUTING.mdを参照してください。

ライセンス

GPL-2.0-or-later

プロジェクトについて

This role bootstraps Python on OpenWrt by installing the required Python packages for Ansible to run.

インストール
ansible-galaxy install sscheib.openwrt_bootstrap
ライセンス
gpl-2.0
ダウンロード
13.2k
所有者
Software Developer, Sysadmin, Linux and Open Source enthusiast