aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2020-02-27 18:48:46 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2020-02-27 18:48:46 +0100
commite89549e78168242c01fca37973a850b5050024c0 (patch)
treedb8f7b6b2a9c724989b7f1ea183d806db8339d7f
parent5000a055cad37ea840609120cb9fa5765e238701 (diff)
downloadlabitat-ansible-e89549e78168242c01fca37973a850b5050024c0.tar.gz
labitat-ansible-e89549e78168242c01fca37973a850b5050024c0.tar.xz
labitat-ansible-e89549e78168242c01fca37973a850b5050024c0.zip
doorputer: lockserve allow empty string in lockserver.ini
-rw-r--r--roles/doorputer/tasks/lockserver.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/doorputer/tasks/lockserver.yml b/roles/doorputer/tasks/lockserver.yml
index a9122d1..89b4dde 100644
--- a/roles/doorputer/tasks/lockserver.yml
+++ b/roles/doorputer/tasks/lockserver.yml
@@ -52,8 +52,8 @@
path: '~doorman/.config/lockserver.ini'
section: "{{ item.key.split('.',1)[0] }}"
option: "{{ item.key.split('.',1)[1] }}"
- value: "{{ item.value|ternary(item.value,omit) }}"
- state: "{{ item.value|ternary('present','absent') }}"
+ value: "{{ (item.value is string)|ternary(item.value,omit) }}"
+ state: "{{ (item.value is string)|ternary('present','absent') }}"
owner: doorman
group: users
mode: 0600