875cdad424
add systemd-resolved consul redirection
18 lines
423 B
YAML
18 lines
423 B
YAML
---
|
|
|
|
- name: Ensure resolved.conf.d is present
|
|
ansible.builtin.file:
|
|
path: /etc/systemd/resolved.conf.d
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: "755"
|
|
- name: "Template resolved consul config"
|
|
ansible.builtin.template:
|
|
src: resolved.conf.d/consul.conf.j2
|
|
dest: /etc/systemd/resolved.conf.d/consul.conf
|
|
group: root
|
|
owner: root
|
|
mode: "644"
|
|
notify: restart systemd-resolved
|