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
|
- hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
# - name: Install chrony
|
|
||||||
# package:
|
- name: Disable systemd LLMNR
|
||||||
# name: chrony
|
lineinfile:
|
||||||
# state: present
|
dest: /etc/systemd/resolved.conf
|
||||||
# notify: restart chrony
|
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
|
- name: Configure chrony
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in a new issue