Giter VIP home page Giter VIP logo

ansible_role_avahi_client's Introduction

Ansible Galaxy MIT License Maintainance

ansible role avahi_client

Avahi provides local hostname resolution using the .local MDNS Domain. 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.

Ansible Collection

This role is part of the l3d.avahi Ansible Collection.

collection l3d.avahi Maintainance License

Visit the README.md of the l3d.avahi collection for information about downloading or integrating the collection to your ansible playbook.

Role Usage Example:

# ansible-galaxy install l3d.avahi_client

- name: "Let your System use MDNS to resolve .local addresses"
  hosts: localhost
  roles:
    - {role: l3d.avahi_client, tags: avahi}
  vars:
    # Enable optional Versioncheck.
    submodules_versioncheck: true

Learn more

ansible_role_avahi_client's People

Contributors

dependabot[bot] avatar do1jlr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.