From 9b92ab77359925bb3cd3d49539436b2e3a5e0e91 Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Sun, 16 Jun 2024 19:18:21 +0200 Subject: [PATCH] oauoau Signed-off-by: Frank Villaro-Dixon --- ansible/configure-server.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/ansible/configure-server.yml b/ansible/configure-server.yml index 6aa2277..cf37413 100644 --- a/ansible/configure-server.yml +++ b/ansible/configure-server.yml @@ -60,11 +60,27 @@ - hosts: all tasks: -# - name: Install chrony -# package: -# name: chrony -# state: present -# notify: restart chrony + + - name: Disable systemd LLMNR + lineinfile: + dest: /etc/systemd/resolved.conf + regexp: "^#?LLMNR=" + line: "LLMNR=no" + insertafter: EOF + state: present + register: resolved_conf + + - name: Restart systemd-resolved + systemd: + name: systemd-resolved + state: restarted + when: resolved_conf.changed + + - name: Install chrony + package: + name: chrony + state: present + notify: restart chrony - name: Configure chrony template: