idiv_biodiversity.systemd_resolved

Ansibleロール: systemd-resolved

systemd-resolvedを設定するAnsibleロールです。

目次

要件

  • Ansible 2.9

ロール変数

DNSサーバーを定義します:

systemd_resolved_servers:
  - a.b.c.1
  - a.b.c.2

systemd_resolved_fallback_servers:
  - d.e.f.1
  - d.e.f.2

ドメインを定義します:

systemd_resolved_domains:
  - example.com

他の変数とデフォルト値の順番:

systemd_resolved_dnssec: no
systemd_resolved_dns_over_tls: no
systemd_resolved_multicast_dns: yes
systemd_resolved_llmnr: yes
systemd_resolved_cache: yes
systemd_resolved_cache_from_localhost: no
systemd_resolved_dns_stub_listener: yes
systemd_resolved_dns_stub_listener_extra: ''
systemd_resolved_read_etc_hosts: yes
systemd_resolved_resolve_unicast_single_label: no
systemd_resolved_stale_retention_sec: 0

詳細については、man 5 resolved.confを参照してください。

依存関係

  • コレクション ansible.posix

サンプルプレイブック

requirements.ymlに追加します:

---

roles:

  - name: idiv_biodiversity.systemd_resolved
    src: https://github.com/idiv-biodiversity/ansible-role-systemd-resolved
    version: v1.2.0

...

ダウンロード:

$ ansible-galaxy install -r requirements.yml

トップレベルプレイブック

トップレベルのプレイブックを書きます:

---

- name: head server
  hosts: head

  roles:
    - role: idiv_biodiversity.systemd_resolved
      tags:
        - systemd-resolved

...

ロールの依存関係

meta/main.ymlでロールの依存関係を定義します:

---

dependencies:

  - role: idiv_biodiversity.systemd_resolved
    tags:
      - systemd-resolved

...

ライセンス

MIT

著者情報

このロールは2019年にChristian Krause(GitHubではwookietreiber)によって作成されました。彼はドイツの統合生物多様性研究センター(iDiv)のHPCクラスターシステム管理者です。

プロジェクトについて

install and configure systemd-resolved

インストール
ansible-galaxy install idiv_biodiversity.systemd_resolved
ライセンス
mit
ダウンロード
399