From 86f5b9b5761aee7497795a5f9bdf379e26af2f0f Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 11 Oct 2016 18:19:58 +0200 Subject: [PATCH] library/roles/linux-kernel-sysctl/tasks/main.yml: Fix the defaults again. --- linux-kernel-sysctl/tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linux-kernel-sysctl/tasks/main.yml b/linux-kernel-sysctl/tasks/main.yml index 5937c7b7..0474e726 100644 --- a/linux-kernel-sysctl/tasks/main.yml +++ b/linux-kernel-sysctl/tasks/main.yml @@ -20,7 +20,8 @@ when: not disable_ipv6 - name: Set the custom sysctl values - sysctl: name={{ item.name }} value={{ item.value }} sysctl_file={{ item.sysctlfile | default ('/etc/sysctl.d/90-custom-values.conf') }} reload={{ item.sysctl_reload | default('yes') }} state={{ item.sysctlfile_state | default('present') }} - with_items: '{{ systemctl_custom_options | default(omit) }}' + sysctl: name={{ item.name }} value={{ item.value }} sysctl_file={{ item.sysctlfile | default ('/etc/sysctl.d/90-custom-values.conf') }} reload={{ item.sysctl_reload | default(yes) }} state={{ item.sysctlfile_state | default('present') }} + with_items: '{{ systemctl_custom_options | default([]) }}' + when: systemctl_custom_options is defined tags: [ 'sysctl', 'kernel' ]