-
Notifications
You must be signed in to change notification settings - Fork 1
/
dependencies.yml
36 lines (30 loc) · 1.13 KB
/
dependencies.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
- hosts: all
sudo: true
tasks:
- name: Push profile
copy: src=files/{{ item }} dest=/home/cassandra owner=cassandra group=cassandra mode=0754
with_items:
- ".bashrc"
- ".bash_profile"
tags:
- profile
- name: Update memlock /etc/security/limits.conf
lineinfile: dest=/etc/security/limits.conf line="cassandra - memlock unlimited" state=present
tags:
- memlock
- name: Update nofile /etc/security/limits.conf
lineinfile: dest=/etc/security/limits.conf line="cassandra - nofile 100000" state=present
tags:
- nofile
- name: Update nproc /etc/security/limits.conf
lineinfile: dest=/etc/security/limits.conf line="cassandra - nproc 32768" state=present
tags:
- nproc
- name: Update as /etc/security/limits.conf
lineinfile: dest=/etc/security/limits.conf line="cassandra - as unlimited" state=present
tags:
- as
- name: Set vm.max_map_count to 1048575
sysctl: name=vm.max_map_count value=1048575 state=present reload=no
tags:
- max_map_count