ansible-consul/tasks/systemd-resolved.yml
vincent 875cdad424 add systemd-resolved consul forwarding
add systemd-resolved consul redirection
2023-10-21 15:19:26 +02:00

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