We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 019139b commit 0b39aabCopy full SHA for 0b39aab
tasks/main.yml
@@ -4,6 +4,15 @@
4
name:
5
- systemd-resolved
6
7
+- name: Enable and start systemd-resolved
8
+ ansible.builtin.service:
9
+ enabled: true
10
+ name: systemd-resolved.service
11
+ # We must start the service to populate the files in
12
+ # /run/systemd/resolve/, which we need when we create a symlink
13
+ # below.
14
+ state: started
15
+
16
- name: Ensure resolvconf is not installed
17
ansible.builtin.package:
18
@@ -21,8 +30,3 @@
21
30
path: /etc/resolv.conf
22
31
src: /run/systemd/resolve/stub-resolv.conf
23
32
state: link
24
-
25
-- name: Enable systemd-resolved
26
- ansible.builtin.service:
27
- enabled: true
28
- name: systemd-resolved.service
0 commit comments