ansible-consul/tasks/systemd-resolved.yml

18 lines
423 B
YAML
Raw Normal View History

---
- 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