aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks/nftables.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/space_server/tasks/nftables.yml')
-rw-r--r--roles/space_server/tasks/nftables.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/space_server/tasks/nftables.yml b/roles/space_server/tasks/nftables.yml
index 2dc8fce..ac5e441 100644
--- a/roles/space_server/tasks/nftables.yml
+++ b/roles/space_server/tasks/nftables.yml
@@ -32,11 +32,11 @@
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 nftables.service
args:
creates: '/etc/systemd/system/multi-user.target.wants/nftables.service'
- when: "'container' in ansible_env"
+ when: chroot
# vim: set ts=2 sw=2 et: