You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
L3D 540c03e548
Merge pull request #4 from roles-ansible/actions
1 month ago
.github update github actions 1 month ago
defaults Scope variables 9 months ago
meta add galaxy meta data 9 months ago
tasks update avahi_client__configure_nsswitch 9 months ago
templates Change nsswicth config to better match docs and common use cases 9 months ago
vars update avahi_client__configure_nsswitch 9 months ago
.gitignore Initial commit 9 months ago
.yamllint Initial commit 9 months ago
LICENSE Initial commit 9 months ago Update readme 9 months ago

Galaxy License

ansible role avahi_client

Avahi provides local hostname resolution using a "hostname.local" naming scheme. This ansible role installs the required dependencies and configures the DNS resolver accordingly.

You can opt-out from deploying a new /etc/nsswitch.conf config by setting avahi_client__configure_nsswitch to false.

You can opt-in in a simple versionscheck that can prevent you from running a older version of this role by setting submodules_versioncheck to true.

Configuring nsswitch

If you want only IPv4 or IPv6 names resolved, change mdns to mdns4 or mdns6 in these variables:

avahi_client__mdns_name: 'mdns'
avahi_client__mdns_minimal_name: 'mdns_minimal'

From the documentation of nss-mdns

mdns resolves both IPv6 and IPv4 addresses, mdns4 only IPv4 addresses and mdns6 only IPv6 addresses. mdns{4,6,}_minimal is mostly identical to the versions without _minimal. However, they differ in one way. The minimal versions will always deny to resolve host names that don't end in .local or addresses that aren't in the range 169.254.x.x (the range used by IPV4LL/APIPA/RFC3927.) Combining the _minimal and the normal NSS modules allows us to make mDNS authoritative for Zeroconf host names and addresses and use it as fallback for everything else.

Learn more