Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
Frank Villaro-Dixon 2024-06-16 19:18:21 +02:00
parent da1ba41f8d
commit 9b92ab7735

View file

@ -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: