add resolved-systemd template

This commit is contained in:
vincent 2022-03-26 11:41:13 +01:00
parent 7488c26f62
commit bfddf278e2
2 changed files with 21 additions and 0 deletions

View File

@ -28,6 +28,23 @@
mode: 0644 mode: 0644
notify: reload consul configuration notify: reload consul configuration
- name: systemd consul resolution
block:
- name: create resolved.conf.d folder
file:
state: directory
path: /etc/systemd/resolved.conf.d
owner: root
group: root
mode: 0755
- name: consul resolution file
template:
src: resolved.conf.d/consul.conf.j2
dest: /etc/systemd/resolved.conf.d/consul.conf
owner: root
group: root
mode: 0644
- name: configure backup - name: configure backup
block: block:
- name: copy backup script - name: copy backup script

View File

@ -0,0 +1,4 @@
[Resolve]
DNS=127.0.0.1:8600
DNSSEC=false
Domains=~consul