aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks/radius.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/space_server/tasks/radius.yml')
-rw-r--r--roles/space_server/tasks/radius.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/space_server/tasks/radius.yml b/roles/space_server/tasks/radius.yml
index b480d3f..11ab1b0 100644
--- a/roles/space_server/tasks/radius.yml
+++ b/roles/space_server/tasks/radius.yml
@@ -89,12 +89,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 getusers.timer
args:
creates: '/etc/systemd/system/timers.target.wants/getusers.timer'
- when: "'container' in ansible_env"
+ when: chroot
- name: Create service drop-in directory
file:
@@ -111,11 +111,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 radiusd.service
args:
creates: '/etc/systemd/system/multi-user.target.wants/radiusd.service'
- when: "'container' in ansible_env"
+ when: chroot
# vim: set ts=2 sw=2 et: