diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2018-11-27 21:50:05 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2018-11-27 21:50:08 +0100 |
commit | 92717c5601d04ea9ae75486998c1a257473de339 (patch) | |
tree | 2b4c0202094dacafcfbfb53f2a52344c3b6e9d4d /roles | |
parent | 9905246b6205817276f945e3d6191eb26504b803 (diff) | |
download | labitat-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')
-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 |