diff options
Diffstat (limited to 'roles/space_server')
-rw-r--r-- | roles/space_server/tasks/radius.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/space_server/tasks/radius.yml b/roles/space_server/tasks/radius.yml index d66d8f6..02bcf2a 100644 --- a/roles/space_server/tasks/radius.yml +++ b/roles/space_server/tasks/radius.yml @@ -48,7 +48,7 @@ - name: Configure radius sites file: path: '/etc/raddb/sites-enabled/{{ item.name }}' - src: '../sites-available/{{ item.name }}' + src: "{{ (item.state == 'link')|ternary('../sites-available/' + item.name,omit) }}" state: '{{ item.state }}' owner: root group: radiusd @@ -64,7 +64,7 @@ - name: Configure radius modules file: path: '/etc/raddb/mods-enabled/{{ item.name }}' - src: '../mods-available/{{ item.name }}' + src: "{{ (item.state == 'link')|ternary('../mods-available/' + item.name,omit) }}" state: '{{ item.state }}' owner: root group: radiusd |