aboutsummaryrefslogtreecommitdiff

avahi

Manage avahi service files.

requirements.yml
roles:
  - src: git+https://git.segundo.io/Ansible/avahi
    name: avahi

Example playbook

---
- hosts: foo
  roles:
    - role: avahi
      vars:
        avahi_service_groups:
          - filename: smb
            name: '%h'
            attributes:
              replace-wildcards: 'yes'
            services:
              - type: _smb._tcp
                port: 445
              - type: _device-info._tcp
                txt-records:
                  - value: model=TimeCapsule8,119
              - type: _adisk._tcp
                txt-records:
                  - value: dk0=adVN=timemachine,adVF=0x82
                  - value: sys=waMa=0,adVF=0x100