Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Avoid int to string conversion warning
Browse files Browse the repository at this point in the history
Quote vm.swappiness value for explicit string conversion.
  • Loading branch information
acopar committed Dec 4, 2019
1 parent eb86e6d commit 453f2a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/configure-tuned.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
dest: "{{ elasticsearch_tuned_profile_custom_conf }}"
section: sysctl
option: vm.swappiness
value: 1
value: "1"
notify:
- Restart tuned
2 changes: 1 addition & 1 deletion tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
- name: Limit swapping to emergency memory situations
sysctl:
name: vm.swappiness
value: 1
value: "1"
sysctl_file: "{{ elasticsearch_sysctl_file }}"
when: not elasticsearch_tuned_service_enabled

Expand Down

0 comments on commit 453f2a3

Please sign in to comment.