1
0
Fork 0
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:
Raoul 2021-09-02 05:26:00 +02:00
parent 6065af448c
commit 9501386adb
7 changed files with 10 additions and 10 deletions

View file

@ -1,10 +1,10 @@
--- ---
# deploy custom /etc/nsswitch.conf config # deploy custom /etc/nsswitch.conf config
avahi__configure_nsswitch: true avahi_client__configure_nsswitch: true
# mdns resolver name # mdns resolver name
avahi__mdns_name: 'mdns' avahi_client__mdns_name: 'mdns'
avahi__mdns_minimal_name: 'mdns_minimal' avahi_client__mdns_minimal_name: 'mdns_minimal'
# should we do a version check? (recomended) # should we do a version check? (recomended)
submodules_versioncheck: false submodules_versioncheck: false

View file

@ -7,8 +7,8 @@
when: when:
- ansible_pkg_mgr == "apt" - ansible_pkg_mgr == "apt"
- name: install avahi packages - name: Install Avahi packages
become: true become: true
ansible.builtin.package: ansible.builtin.package:
name: "{{ avahi_packages }}" name: "{{ avahi_client__packages }}"
state: present state: present

View file

@ -1,5 +1,5 @@
--- ---
- name: deploy /etc/nsswitch.conf - name: Deploy '/etc/nsswitch.conf'
become: true become: true
ansible.builtin.template: ansible.builtin.template:
src: 'templates/nsswitch.conf.j2' src: 'templates/nsswitch.conf.j2'

View file

@ -12,7 +12,7 @@ gshadow: files
publickey: 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 networks: files
protocols: db [NOTFOUND=return] files protocols: db [NOTFOUND=return] files

View file

@ -1,5 +1,5 @@
--- ---
avahi_packages:
- avahi - avahi
- mdns-scan - mdns-scan
- nss-mdns - nss-mdns
avahi_client__packages:

View file

@ -1,5 +1,5 @@
--- ---
avahi_packages: avahi_client__packages:
- 'avahi-discover' - 'avahi-discover'
- 'avahi-utils' - 'avahi-utils'
- 'mdns-scan' - 'mdns-scan'

View file

@ -1,3 +1,3 @@
--- ---
avahi_packages:
- mdns-scan - mdns-scan
avahi_client__packages: