[FIX] Ignorer les serveurs DNS pour le déploiement des clients #2
@ -8,7 +8,9 @@
|
|||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
src: "{{ role_path }}/templates/host.conf.j2"
|
src: "{{ role_path }}/templates/host.conf.j2"
|
||||||
dest: /srv/dnsmasq/{{ dnsmasq_client_filename }}.conf
|
dest: /srv/dnsmasq/{{ dnsmasq_client_filename }}.conf
|
||||||
when: dnsmasq_servers | length > 0
|
when:
|
||||||
|
- dnsmasq_servers | length > 0
|
||||||
|
- dnsmasq_host_ipv4 not in dnsmasq_servers
|
||||||
tags: creation
|
tags: creation
|
||||||
loop: "{{ dnsmasq_servers }}"
|
loop: "{{ dnsmasq_servers }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
@ -21,7 +23,9 @@
|
|||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /srv/dnsmasq/{{ dnsmasq_client_filename }}.conf
|
path: /srv/dnsmasq/{{ dnsmasq_client_filename }}.conf
|
||||||
state: absent
|
state: absent
|
||||||
when: dnsmasq_servers | length > 0
|
when:
|
||||||
|
- dnsmasq_servers | length > 0
|
||||||
|
- dnsmasq_host_ipv4 not in dnsmasq_servers
|
||||||
tags: [destruction, never]
|
tags: [destruction, never]
|
||||||
loop: "{{ dnsmasq_servers }}"
|
loop: "{{ dnsmasq_servers }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
|
Loading…
Reference in New Issue
Block a user