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