From e89549e78168242c01fca37973a850b5050024c0 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Thu, 27 Feb 2020 18:48:46 +0100 Subject: doorputer: lockserve allow empty string in lockserver.ini --- roles/doorputer/tasks/lockserver.yml | 4 ++-- 1 file 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 -- cgit v1.2.1