main.yml 415 B

12345678910111213141516171819
  1. ---
  2. - name: DBus and Avahi packages installed
  3. community.general.pkgng:
  4. name: "avahi-app nss_mdns dbus ca_root_nss"
  5. state: latest
  6. - name: DBus enabled
  7. shell: sysrc dbus_enable="YES"
  8. - name: Avahi enabled
  9. shell: sysrc avahi_daemon_enable="YES"
  10. - name: NSS switch config file installed
  11. patch:
  12. src: nsswitch.patch
  13. dest: /etc/nsswitch.conf
  14. notify:
  15. - DBus restarted
  16. - Avahi restarted