From f9a98017a3f1d58bf72aa818eb5a0447bcd0b80f Mon Sep 17 00:00:00 2001 From: Laur Ivan Date: Fri, 28 Apr 2023 18:14:53 +0200 Subject: [PATCH] fix: Sudo for limit changes --- tasks/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/config.yml b/tasks/config.yml index a7e8e3f..d0d5593 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -33,6 +33,7 @@ # Type "-" for enforcing both soft and hard resource limits together for more details read `man limits.conf`. - { limit_type: '-', limit_item: 'nofile', value: "{{ sonarqube_nofile }}" } - { limit_type: '-', limit_item: 'nproc', value: "{{ sonarqube_nproc }}" } + become: true - name: "SONARQUBE | Set up the max files" sysctl: @@ -40,10 +41,12 @@ value: "{{ sonarqube_fs_file_max }}" state: present reload: yes + become: true - name: "SONARQUBE | Set up the VM max_map_count" sysctl: name: vm.max_map_count value: "{{ sonarqube_vm_max_map_count }}" state: present - reload: yes \ No newline at end of file + reload: yes + become: true \ No newline at end of file