mirror of
https://github.com/roles-ansible/ansible_role_avahi_client.git
synced 2024-08-16 16:09:49 +02:00
Scope variables
This commit is contained in:
parent
6065af448c
commit
9501386adb
7 changed files with 10 additions and 10 deletions
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
# deploy custom /etc/nsswitch.conf config
|
||||
avahi__configure_nsswitch: true
|
||||
avahi_client__configure_nsswitch: true
|
||||
|
||||
# mdns resolver name
|
||||
avahi__mdns_name: 'mdns'
|
||||
avahi__mdns_minimal_name: 'mdns_minimal'
|
||||
avahi_client__mdns_name: 'mdns'
|
||||
avahi_client__mdns_minimal_name: 'mdns_minimal'
|
||||
|
||||
# should we do a version check? (recomended)
|
||||
submodules_versioncheck: false
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
when:
|
||||
- ansible_pkg_mgr == "apt"
|
||||
|
||||
- name: install avahi packages
|
||||
- name: Install Avahi packages
|
||||
become: true
|
||||
ansible.builtin.package:
|
||||
name: "{{ avahi_packages }}"
|
||||
name: "{{ avahi_client__packages }}"
|
||||
state: present
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: deploy /etc/nsswitch.conf
|
||||
- name: Deploy '/etc/nsswitch.conf'
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: 'templates/nsswitch.conf.j2'
|
||||
|
|
|
@ -12,7 +12,7 @@ gshadow: files
|
|||
|
||||
publickey: files
|
||||
|
||||
hosts: files mymachines myhostname {{ avahi__mdns_minimal_name }} [NOTFOUND=return] resolve [!UNAVAIL=return] dns {{ avahi__mdns_name }}
|
||||
hosts: files mymachines myhostname {{ avahi_client__mdns_minimal_name }} [NOTFOUND=return] resolve [!UNAVAIL=return] dns {{ avahi_client__mdns_name }}
|
||||
networks: files
|
||||
|
||||
protocols: db [NOTFOUND=return] files
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
avahi_packages:
|
||||
- avahi
|
||||
- mdns-scan
|
||||
- nss-mdns
|
||||
avahi_client__packages:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
avahi_packages:
|
||||
avahi_client__packages:
|
||||
- 'avahi-discover'
|
||||
- 'avahi-utils'
|
||||
- 'mdns-scan'
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
---
|
||||
avahi_packages:
|
||||
- mdns-scan
|
||||
avahi_client__packages:
|
||||
|
|
Loading…
Reference in a new issue