calvinbui.ansible_nut
Ansible Network UPS Tools
VMでNUTを実行し、他のコンピューターがスレーブとして接続します。
要件
特になし
ロール変数
nut_host: NUTが実行されているサーバー
nut_max_retry: 最大再試行回数
nut_mode: 認識される値はnone、standalone、netserver、netclientです。詳細は https://networkupstools.org/docs/man/nut.conf.html をご覧ください。
nut_user_master_name: マスターユーザーのユーザー名
nut_user_master_password: マスターユーザーのパスワード
nut_user_slave_name: スレーブユーザーのユーザー名
nut_user_slave_password: スレーブユーザーのパスワード
nut_ups_devices: UPSデバイスのリスト。ups.confの設定に使用されます。
nut_ups_monitors: 監視するUPSデバイスのリスト。upsmon.confの設定に使用されます。
nut_ups_listen: 聞き取るインターフェースのリスト。upsd.confに使用されます。
依存関係
特になし
例:プレイブック
- hosts: servers
become: true
roles:
- role: calvinbui.ansible_nut
ライセンス
GPLv3
