Skip to content

Commit 6398bd5

Browse files
committed
Support 'option' key for sysctl parameter name
Updated the sysctl task to use 'item.option' as the parameter name if provided, falling back to 'item.name'.
1 parent e0acdd7 commit 6398bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

automation/roles/sysctl/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
- name: Setting kernel parameters
1212
ansible.posix.sysctl:
13-
name: "{{ item.name }}"
13+
name: "{{ item.option | default(item.name) }}"
1414
value: "{{ item.value }}"
1515
sysctl_set: true
1616
state: present

0 commit comments

Comments
 (0)