aboutsummaryrefslogtreecommitdiffstats
path: root/roles/debian/tasks/systemd.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/debian/tasks/systemd.yml')
-rw-r--r--roles/debian/tasks/systemd.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/roles/debian/tasks/systemd.yml b/roles/debian/tasks/systemd.yml
index a2b9e4b..5413266 100644
--- a/roles/debian/tasks/systemd.yml
+++ b/roles/debian/tasks/systemd.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: '{{ systemd_conf }}'
- name: Configure journald.conf
@@ -19,8 +19,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: '{{ journald_conf }}'
- name: Configure logind.conf
@@ -31,8 +31,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: '{{ logind_conf }}'
# vim: set ts=2 sw=2 et: