diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2017-11-17 17:15:25 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2017-11-17 17:15:25 +0100 |
commit | de039416db3ec6241f36338ad864322fbb08422d (patch) | |
tree | ade0570ce814b69c1ddd2ec031d03764ee1f9594 /roles | |
parent | fb8f2a13aa2aeb2b126b8b391a173cf3e7b3231a (diff) | |
download | labitat-ansible-de039416db3ec6241f36338ad864322fbb08422d.tar.gz labitat-ansible-de039416db3ec6241f36338ad864322fbb08422d.tar.xz labitat-ansible-de039416db3ec6241f36338ad864322fbb08422d.zip |
space_server: avahi: use mdns_minimal to resolve .local
Diffstat (limited to 'roles')
-rw-r--r-- | roles/space_server/tasks/avahi.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/space_server/tasks/avahi.yml b/roles/space_server/tasks/avahi.yml index 9520b08..8390de4 100644 --- a/roles/space_server/tasks/avahi.yml +++ b/roles/space_server/tasks/avahi.yml @@ -8,6 +8,13 @@ tags: - packages +- name: Install nss-mdns package + dnf: + name: nss-mdns + state: latest + tags: + - packages + - name: Configure avahi-daemon ini_file: path: /etc/avahi/avahi-daemon.conf @@ -83,4 +90,10 @@ creates: '/etc/systemd/system/multi-user.target.wants/avahi-daemon.service' when: "'container' in ansible_env" +- name: Use nss-mdns + lineinfile: + path: /etc/nsswitch.conf + regexp: '^hosts:' + line: 'hosts: files mdns_minimal [NOTFOUND=return] dns myhostname' + # vim: set ts=2 sw=2 et: |