mirror of
https://github.com/lucascbeyeler/zimbra
synced 2026-09-29 19:31:08 +02:00
systmed-resolved configuration to avoid conflicts with zimbra-dnscache
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
---
|
||||
|
||||
- name: Deshabilitar resolvedor local
|
||||
ansible.builtin.ini_file:
|
||||
path: /etc/systemd/resolved.conf
|
||||
section: Resolve
|
||||
option: DNSStubListener
|
||||
value: "no"
|
||||
register: disable_dns_stub_listener
|
||||
|
||||
- name: Destruir enlace simbólico
|
||||
file:
|
||||
path: /etc/resolv.conf
|
||||
state: absent
|
||||
when: disable_dns_stub_listener.changed
|
||||
|
||||
- name: Crear enlace simbólico
|
||||
file:
|
||||
path: /etc/resolv.conf
|
||||
src: /run/systemd/resolve/resolv.conf
|
||||
state: link
|
||||
when: disable_dns_stub_listener.changed
|
||||
|
||||
- name: Reiniciar servicio systemd-resolved
|
||||
ansible.builtin.service:
|
||||
name: systemd-resolved
|
||||
state: restarted
|
||||
when: disable_dns_stub_listener.changed
|
||||
@@ -28,6 +28,8 @@
|
||||
when: zimbra_store == 'y'
|
||||
- import_tasks: 'configure/mta.yml'
|
||||
when: zimbra_mta == 'y'
|
||||
- import_tasks: 'configure/dnscache.yml'
|
||||
when: zimbra_dnscache == 'y'
|
||||
|
||||
#
|
||||
# Extras configuration process
|
||||
|
||||
Reference in New Issue
Block a user