eddyhub.syncthing
Ansible syncthing
在Linux(CentOS)上安装和管理syncthing(http://syncthing.net/)。
- 检查版本
- 下载syncthing(指定版本或最新版本)
- 安装到
{{ syncthing_home }}/bin/
- 配置地址、用户名(一些基本选项)
需求
角色变量
选项 | 描述 | 默认值 |
---|---|---|
syncthing_user | 运行syncthing守护进程的用户。 | syncthing |
syncthing_home | syncthing的主目录 | /home/{{ syncthing_user }} |
syncthing_address | Web界面的地址 | 127.0.0.1:8080 |
syncthing_localannounce | 启用/禁用本地公告选项 | false |
syncthing_globalannounce | 启用/禁用全局公告选项 | false |
syncthing_listen | 远程连接的地址选项 | tcp://0.0.0.0:22000 |
syncthing_upnp | 启用/禁用upnp 。 |
false |
syncthing_gui_user | GUI登录的用户名。 | |
syncthing_gui_password | GUI登录的密码。 |
依赖
- cmprescott.xml: https://galaxy.ansible.com/cmprescott/xml/
示例剧本
包括一个如何使用你的角色的示例(例如,作为参数传递的变量),对用户来说总是很有帮助:
- hosts: servers
- role: syncthing
syncthing_user: syncthing
syncthing_localannounce: false
syncthing_globalannounce: false
syncthing_upnp: false
许可证
BSD
作者信息
可选部分,可以包含角色作者的联系信息或网站(不允许使用HTML)。