diff --git a/linux-kernel-sysctl/defaults/main.yml b/linux-kernel-sysctl/defaults/main.yml index b7d5f4f..42d8451 100644 --- a/linux-kernel-sysctl/defaults/main.yml +++ b/linux-kernel-sysctl/defaults/main.yml @@ -4,8 +4,8 @@ sysctl_opts_reload: yes sysctl_custom_file_state: present # Only name and value are mandatory. The others have defaults -systemctl_custom_options: - - { name: 'net.nf_conntrack_max', value: '32768', sysctlfile: '{{ sysctl_custom_file }}', sysctl_reload: '{{ sysctl_opts_reload }}', sysctlfile_state: '{{ sysctl_custom_file_state }}' } +#systemctl_custom_options: +# - { name: 'net.nf_conntrack_max', value: '32768', sysctlfile: '{{ sysctl_custom_file }}', sysctl_reload: '{{ sysctl_opts_reload }}', sysctlfile_state: '{{ sysctl_custom_file_state }}' } disable_ipv6: True ipv6_sysctl_value: 1 diff --git a/linux-kernel-sysctl/tasks/main.yml b/linux-kernel-sysctl/tasks/main.yml index 0c9918b..5937c7b 100644 --- a/linux-kernel-sysctl/tasks/main.yml +++ b/linux-kernel-sysctl/tasks/main.yml @@ -21,6 +21,6 @@ - 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 }}' + with_items: '{{ systemctl_custom_options | default(omit) }}' tags: [ 'sysctl', 'kernel' ]