moved from systemd task to service for setting up systemd-resolved
This commit is contained in:
parent
1744da21ee
commit
40b1eafb7d
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
# task/systemd file for dns_resolver_conf
|
# task/systemd file for dns_resolver_conf
|
||||||
- name: "Configure systemd-resolved"
|
- name: "Configure systemd-resolved"
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.service:
|
||||||
name: systemd-resolved
|
name: systemd-resolved
|
||||||
state: "{{ 'started' if not dns_resolv_conf_disable_resolvectl else 'stopped' }}"
|
|
||||||
enabled: "{{ 'true' if not dns_resolv_conf_disable_resolvectl else 'false' }}"
|
enabled: "{{ 'true' if not dns_resolv_conf_disable_resolvectl else 'false' }}"
|
||||||
|
state: "{{ 'started' if not dns_resolv_conf_disable_resolvectl else 'stopped' }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user