add resolved-systemd template
This commit is contained in:
parent
7488c26f62
commit
bfddf278e2
@ -28,6 +28,23 @@
|
||||
mode: 0644
|
||||
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
|
||||
block:
|
||||
- name: copy backup script
|
||||
|
4
templates/resolved.conf.d/consul.conf.j2
Normal file
4
templates/resolved.conf.d/consul.conf.j2
Normal file
@ -0,0 +1,4 @@
|
||||
[Resolve]
|
||||
DNS=127.0.0.1:8600
|
||||
DNSSEC=false
|
||||
Domains=~consul
|
Loading…
Reference in New Issue
Block a user