forked from ISTI-ansible-roles/ansible-roles
library/roles/linux-kernel-sysctl/tasks/main.yml: Fix the defaults again.
This commit is contained in:
parent
e415e30c00
commit
86f5b9b576
|
@ -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' ]
|
||||
|
|
Loading…
Reference in New Issue