Skip to content

Commit

Permalink
Merge pull request #214 from linuxfreakus/develop
Browse files Browse the repository at this point in the history
Address upstream Issue #211
  • Loading branch information
vitabaks authored Nov 5, 2022
2 parents 2b77c2b + 6febee0 commit cc3a320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/sysctl/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- block:
- name: Build a sysctl_conf dynamic variable
set_fact:
sysctl_conf_dynamic_var: "{{ sysctl_conf_dynamic_var |default([]) }} + {{ sysctl_conf[item] | flatten(1) }}" # yamllint disable rule:line-length
sysctl_conf_dynamic_var: "{{ sysctl_conf_dynamic_var | default([]) + (sysctl_conf[item] | flatten(1)) }}" # yamllint disable rule:line-length
loop: "{{ hostvars[inventory_hostname].group_names }}"

- name: Setting kernel parameters
Expand All @@ -16,7 +16,7 @@
sysctl_set: true
state: present
reload: true
loop: "{{ sysctl_conf_dynamic_var|list | unique }}"
loop: "{{ sysctl_conf_dynamic_var | unique }}"
when: sysctl_conf_dynamic_var | length > 0
ignore_errors: true
when: sysctl_set|bool
Expand Down

0 comments on commit cc3a320

Please sign in to comment.