mireiawen.hosts
Ansible ホスト
ホストファイルにエントリを設定します。
必要条件
/etc/hosts
ファイルを編集するためのアクセス。
ロール変数
設定キー | 説明 | デフォルト値 |
---|---|---|
hosts_entries |
ホストファイルに追加する実際のエントリブロック | なし |
hosts_file |
修正するホストファイル | /etc/hosts |
依存関係
なし。
例のプレイブック
- hosts: "servers"
roles:
- role: "mireiawen.hosts"
hosts_entries: |
8.8.8.8 google.dns example.org
192.168.0.200 example.local
ライセンス
MIT、LICENSE
を参照。