diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2020-02-27 18:47:30 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2020-02-27 18:47:30 +0100 |
commit | 6abfd1e88722326480192f49833ddceaf29f5498 (patch) | |
tree | 20eef3e6a44bccb644de4d76cbb19cc7ad2a7e45 /roles/debian/tasks/timesyncd.yml | |
parent | fcdd92a48563ca92b96c896e46a9d574e44e5596 (diff) | |
download | labitat-ansible-6abfd1e88722326480192f49833ddceaf29f5498.tar.gz labitat-ansible-6abfd1e88722326480192f49833ddceaf29f5498.tar.xz labitat-ansible-6abfd1e88722326480192f49833ddceaf29f5498.zip |
debian: allow empty strings in ini files
Diffstat (limited to 'roles/debian/tasks/timesyncd.yml')
-rw-r--r-- | roles/debian/tasks/timesyncd.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/debian/tasks/timesyncd.yml b/roles/debian/tasks/timesyncd.yml index 9895d0b..17693c3 100644 --- a/roles/debian/tasks/timesyncd.yml +++ b/roles/debian/tasks/timesyncd.yml @@ -7,8 +7,8 @@ no_extra_spaces: yes 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') }}" with_dict: '{{ timesyncd_conf }}' when: use_timesyncd notify: restart timesyncd |