dns_resolver_conf/tasks/systemd.yml

8 lines
306 B
YAML
Raw Normal View History

2023-03-20 21:48:29 +00:00
---
# task/systemd file for dns_resolver_conf
- name: "Configure systemd-resolved"
ansible.builtin.service:
2023-03-20 21:48:29 +00:00
name: systemd-resolved
enabled: "{{ 'true' if not dns_resolv_conf_disable_resolvectl else 'false' }}"
state: "{{ 'started' if not dns_resolv_conf_disable_resolvectl else 'stopped' }}"