aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks/unbound.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/space_server/tasks/unbound.yml')
-rw-r--r--roles/space_server/tasks/unbound.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/space_server/tasks/unbound.yml b/roles/space_server/tasks/unbound.yml
index a9c4610..b11c338 100644
--- a/roles/space_server/tasks/unbound.yml
+++ b/roles/space_server/tasks/unbound.yml
@@ -21,12 +21,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 unbound.service
args:
creates: '/etc/systemd/system/multi-user.target.wants/unbound.service'
- when: "'container' in ansible_env"
+ when: chroot
- name: Use our own resolver
copy: