aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks/resolved.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/space_server/tasks/resolved.yml')
-rw-r--r--roles/space_server/tasks/resolved.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/space_server/tasks/resolved.yml b/roles/space_server/tasks/resolved.yml
index d95d1d1..9196e1c 100644
--- a/roles/space_server/tasks/resolved.yml
+++ b/roles/space_server/tasks/resolved.yml
@@ -5,12 +5,12 @@
# enabled: yes
# masked: no
# state: started
-# when: "'container' not in ansible_env"
-#- name: '- when in nspawn'
+# when: not chroot
+#- name: '- when in chroot'
# command: systemctl enable systemd-resolved.service
# args:
# creates: '/etc/systemd/system/multi-user.target.wants/systemd-resolved.service'
-# when: "'container' in ansible_env"
+# when: chroot
#
#- name: Use systemd-resolved
# lineinfile:
@@ -24,11 +24,11 @@
enabled: no
masked: no
state: stopped
- when: "'container' not in ansible_env"
-- name: '- when in nspawn'
+ when: not chroot
+- name: '- when in chroot'
command: systemctl disable systemd-resolved.service
args:
removes: '/etc/systemd/system/multi-user.target.wants/systemd-resolved.service'
- when: "'container' in ansible_env"
+ when: chroot
# vim: set ts=2 sw=2 et: