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: 主服务器
hosts: head
roles:
- role: idiv_biodiversity.systemd_resolved
tags:
- systemd-resolved
...
角色依赖
在 meta/main.yml
中定义角色依赖:
---
dependencies:
- role: idiv_biodiversity.systemd_resolved
tags:
- systemd-resolved
...
许可证
MIT
作者信息
这个角色是由 Christian Krause 在 2019 年创建的,GitHub 用户名为 wookietreiber,是 德国综合生物多样性研究中心 (iDiv) 的高性能计算集群系统管理员。