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