From 92717c5601d04ea9ae75486998c1a257473de339 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Tue, 27 Nov 2018 21:50:05 +0100 Subject: space_server: radius: omit src when state != link This fixes some ansible warnings. --- roles/space_server/tasks/radius.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles') 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 -- cgit v1.2.1