Fix avahi config

This commit is contained in:
Nicolas Meienberger 2022-04-07 22:31:11 +02:00
parent 7c15e5fa97
commit 524a4e2e20
5 changed files with 11 additions and 10 deletions

View File

@ -3,8 +3,9 @@
become: yes
tasks:
- import_tasks: ./tasks/arch/essential.yml
- import_tasks: ./tasks/zsh.yml
- import_tasks: ./tasks/common/essential.yml
- import_tasks: ./tasks/common/zsh.yml
- import_tasks: ./tasks/common/docker.yml
- import_tasks: ./tasks/network/avahi.yml
# - import_tasks: tasks/zsh.yml
# - import_tasks: tasks/nginx.yml

View File

@ -2,7 +2,6 @@
package:
name: docker
state: latest
when: not docker_status.stat.exists
- name: Install essential packages
package:

View File

@ -1,3 +1,6 @@
- name: Change machine hostname to tipi.local
shell: hostnamectl set-hostname tipi.local
- name: Update packages
become: yes
pacman:

View File

@ -23,9 +23,9 @@
regexp: '^hosts:.*'
line: 'hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns'
- name: Allow port 5353
ufw:
action: allow
- name: Allow port 5353 in UFW
community.general.ufw:
rule: allow
port: 5353
proto: udp
@ -34,11 +34,11 @@
src: "{{ playbook_dir }}/templates/avahi/tipi.service"
dest: /etc/avahi/services/tipi.service
group: avahi
user: avahi
owner: avahi
- name: Start and enable avahi-daemon
service:
name: avahi-daemon
state: started
state: restarted
enabled: yes
###

View File

@ -1,6 +1,5 @@
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
@ -8,7 +7,6 @@
<port>80</port>
</service>
</service-group>
<service-group>
<name replace-wildcards="yes">%h</name>
<service>