library/roles/linux-kernel-sysctl/tasks/main.yml: Fix the defaults again.

This commit is contained in:
Andrea Dell'Amico 2016-10-11 18:19:58 +02:00
parent e415e30c00
commit 86f5b9b576
1 changed files with 3 additions and 2 deletions

View File

@ -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' ]