aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2018-11-27 21:50:05 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2018-11-27 21:50:08 +0100
commit92717c5601d04ea9ae75486998c1a257473de339 (patch)
tree2b4c0202094dacafcfbfb53f2a52344c3b6e9d4d /roles/space_server
parent9905246b6205817276f945e3d6191eb26504b803 (diff)
downloadlabitat-ansible-92717c5601d04ea9ae75486998c1a257473de339.tar.gz
labitat-ansible-92717c5601d04ea9ae75486998c1a257473de339.tar.xz
labitat-ansible-92717c5601d04ea9ae75486998c1a257473de339.zip
space_server: radius: omit src when state != link
This fixes some ansible warnings.
Diffstat (limited to 'roles/space_server')
-rw-r--r--roles/space_server/tasks/radius.yml4
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