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 | ウェブインターフェースのアドレス | 127.0.0.1:8080 |
syncthing_localannounce | localAnnounceオプションの有効/無効 | false |
syncthing_globalannounce | 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は使用できません)。