aboutsummaryrefslogtreecommitdiffstats
path: root/roles/debian/tasks/resolved.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/debian/tasks/resolved.yml')
-rw-r--r--roles/debian/tasks/resolved.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/debian/tasks/resolved.yml b/roles/debian/tasks/resolved.yml
index 9b8d589..35c2cf6 100644
--- a/roles/debian/tasks/resolved.yml
+++ b/roles/debian/tasks/resolved.yml
@@ -10,7 +10,7 @@
value: "{{ (item.value is string)|ternary(item.value,omit) }}"
state: "{{ (item.value is string)|ternary('present','absent') }}"
with_dict: '{{ resolved_conf }}'
- when: use_resolved|bool
+ when: use_resolved
notify: restart resolved
- name: Enable/disable systemd-resolved
@@ -22,7 +22,7 @@
when: not chroot
- name: '- when in chroot'
command: "systemctl {{ use_resolved|ternary('enable','disable') }} systemd-resolved.service"
- when: chroot|bool
+ when: chroot
- name: Symlink /etc/resolv.conf
file:
@@ -30,12 +30,12 @@
src: '/run/systemd/resolve/resolv.conf'
state: link
force: yes
- when: use_resolved|bool
+ when: use_resolved
- name: Use myhostname and possibly resolved nss plugins
lineinfile:
path: /etc/nsswitch.conf
regexp: '^hosts:'
line: 'hosts: files resolve [!UNAVAIL=return] dns myhostname'
- when: use_resolved|bool
+ when: use_resolved
# vim: set ts=2 sw=2 et: