idiv_biodiversity.systemd_resolved

Rola Ansible: systemd-resolved

Rola Ansible, która konfiguruje systemd-resolved.

Spis treści

Wymagania

  • Ansible 2.9

Zmienne Roli

Zdefiniuj swoje serwery DNS:

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

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

Zdefiniuj swoje domeny:

systemd_resolved_domains:
  - example.com

Inne zmienne w kolejności, w jakiej się pojawiają, wraz z ich wartościami domyślnymi:

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

Aby uzyskać więcej informacji, zapoznaj się z man 5 resolved.conf.

Zależności

  • kolekcja ansible.posix

Przykładowy Playbook

Dodaj do requirements.yml:

---

roles:

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

...

Pobierz:

$ ansible-galaxy install -r requirements.yml

Playbook na poziomie głównym

Napisz playbook na poziomie głównym:

---

- name: serwer główny
  hosts: head

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

...

Zależność Roli

Zdefiniuj zależność roli w meta/main.yml:

---

dependencies:

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

...

Licencja

MIT

Informacje o autorze

Ta rola została stworzona w 2019 roku przez Christiana Krause, znanego jako wookietreiber na GitHubie, administratora systemów klastrów HPC w Niemieckim Centrum Badań Integracyjnych nad Biodiversity (iDiv).

O projekcie

install and configure systemd-resolved

Zainstaluj
ansible-galaxy install idiv_biodiversity.systemd_resolved
Licencja
mit
Pobrania
399