oauoau
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
parent
da1ba41f8d
commit
9b92ab7735
1 changed files with 21 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue