l3d.avahi_daemon

Ansible Galaxy MIT License Maintainance

ansible 角色 avahi_daemon

Ansible 角色用于安装 avahi_daemon,并可选择性地广播一些服务。

变量

avahi_daemon__services 变量中,您可以定义要宣布的服务。 以下是可用参数的列表:

  • service: 服务名称 (HTTP/SSH/...) (必需)
  • port: 服务端口 (必需)
  • name: 可选的服务名称
  • protocol: any/ipv6/ipv4
  • txt_records: txt 记录的数组
  • transport: 传输协议 (tcp/udp)

示例:

---
avahi_daemon__services:
  - service: 'SSH'
    port: 22
    protocol: 'any'
    transport: 'tcp'
  - service: 'NFS'
    name: '文件共享主机 %h'
    port: 2049
    protocol: 'ipv6'
    txt_records:
      - 'path=/path/to/nfsexport'
  - service: 'FTP'
    port: '21'
    protocol: 'ipv4'
    txt_records:
      - 'path=/ftppath'
      - 'u=ftpuser'
      - 'p=ftppass'

网络过滤规则

Avahi 使用组播来广播服务。 不要忘记添加组播 DNS 的网络过滤规则。

ferm 的配置示例:

# mdns
daddr 224.0.0.251 proto udp dport 5353 ACCEPT;
daddr ff02::fb proto udp dport 5353 ACCEPT;

Ansible 集合

该角色是 l3d.avahi Ansible 集合的一部分。

collection l3d.avahi Maintainance License

访问 l3d.avahi 集合的 README.md 获取有关下载或将该集合集成到您的 ansible playbook 中的信息。

角色使用示例:

链接
-----
* http://dns-sd.org/
* http://www.multicastdns.org/
* https://www.ietf.org/rfc/rfc6762.txt
* http://www.dns-sd.org/ServiceTypes.html

- https://www.avahi.org/
- https://github.com/lathiat/avahi

+ https://github.com/lathiat/avahi/blob/master/avahi-daemon/avahi-service.dtd

* https://github.com/lathiat/nss-mdns
关于项目

Install avahi and optionally announce avahi services

安装
ansible-galaxy install l3d.avahi_daemon
许可证
mit
下载
480
拥有者
Ansible roles provide a framework for fully independent, or interdependent collections of variables,tasks,files,templates &modules. Here we maintain some. enjoy