mirror of
https://github.com/lucascbeyeler/zimbra
synced 2026-10-17 20:24:16 +02:00
Adding disable_existing_dns_stub_listener variable
This commit is contained in:
@@ -45,3 +45,4 @@ timezone: UTC
|
||||
################################################################################
|
||||
zimbra_version: 8.8.15
|
||||
|
||||
disable_existing_dns_stub_listener: n
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
---
|
||||
|
||||
- name: Deshabilitar resolvedor local
|
||||
- name: Disable local resolver
|
||||
ansible.builtin.ini_file:
|
||||
path: /etc/systemd/resolved.conf
|
||||
section: Resolve
|
||||
@@ -8,20 +8,20 @@
|
||||
value: "no"
|
||||
register: disable_dns_stub_listener
|
||||
|
||||
- name: Destruir enlace simbólico
|
||||
- name: Delete symbolic link
|
||||
file:
|
||||
path: /etc/resolv.conf
|
||||
state: absent
|
||||
when: disable_dns_stub_listener.changed
|
||||
|
||||
- name: Crear enlace simbólico
|
||||
- name: Create symbolic link
|
||||
file:
|
||||
path: /etc/resolv.conf
|
||||
src: /run/systemd/resolve/resolv.conf
|
||||
state: link
|
||||
when: disable_dns_stub_listener.changed
|
||||
|
||||
- name: Reiniciar servicio systemd-resolved
|
||||
- name: Restart systemd-resolved service
|
||||
ansible.builtin.service:
|
||||
name: systemd-resolved
|
||||
state: restarted
|
||||
+2
-2
@@ -28,8 +28,8 @@
|
||||
when: zimbra_store == 'y'
|
||||
- import_tasks: 'configure/mta.yml'
|
||||
when: zimbra_mta == 'y'
|
||||
- import_tasks: 'configure/dnscache.yml'
|
||||
when: zimbra_dnscache == 'y'
|
||||
- import_tasks: 'configure/disable_existing_dns_stub_listener.yml'
|
||||
when: zimbra_dnscache == 'y' and disable_existing_dns_stub_listener == 'y'
|
||||
|
||||
#
|
||||
# Extras configuration process
|
||||
|
||||
Reference in New Issue
Block a user