mtlynch.tinypilot
Ansible 角色:TinyPilot
这是一个用于 TinyPilot KVM 的 Ansible 角色。
角色变量
可用的变量如下所示,以及默认值(见 defaults/main.yml):
tinypilot_interface: '127.0.0.1'
tinypilot_port: 8000
tinypilot_keyboard_interface: /dev/hidg0
# 客户端需要提供 TinyPilot Debian
# 包的路径/URL
tinypilot_debian_package_path: null
依赖项
示例剧本
构建 TinyPilot Debian 包
要使用 Ansible 角色安装 TinyPilot,你需要提供 TinyPilot Debian 包的路径或 URL。
要构建 TinyPilot Debian 包,可以运行以下命令:
cd $(mktemp -d) && \
git clone https://github.com/tiny-pilot/tinypilot.git . && \
./dev-scripts/build-debian-pkg
这将在 ./debian-pkg/releases
目录下生成一个 TinyPilot Debian 包。
example.yml
- hosts: all
roles:
- role: ansible-role-tinypilot
vars:
tinypilot_debian_package_path: /path/to/tinypilot.deb
运行示例剧本
ansible-galaxy install git+https://github.com/tiny-pilot/ansible-role-tinypilot.git
ansible-playbook example.yml
文档
许可证
MIT
作者信息
该角色由 Michael Lynch 于 2020 年创建。
安装
ansible-galaxy install mtlynch.tinypilot
许可证
mit
下载
4.3k
拥有者