File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 46
46
environment :
47
47
LD_LIBRARY_PATH : " {{pg_dst}}/lib/"
48
48
49
-
50
49
- hosts : clients
51
50
tasks :
52
- - name : increase open files
53
- shell : " echo '{{ansible_ssh_user}} soft nofile 65535' > /etc/security/limits.d/cluster.conf"
54
- args :
55
- creates : " /etc/security/limits.d/cluster.conf"
51
+ - name : increase max open files
52
+ lineinfile :
53
+ dest : /etc/security/limits.d/cluster.conf
54
+ line : " {{item}}"
55
+ state : present
56
+ with_items :
57
+ - ' {{ansible_ssh_user}} soft nofile 65535'
58
+ - ' {{ansible_ssh_user}} hard nofile 65535'
56
59
sudo : yes
57
60
58
61
- name : copy pg source
Original file line number Diff line number Diff line change 10
10
- bison
11
11
- flex
12
12
- libreadline-dev
13
- when : ansible_os_family == "Debian"
13
+ when : (pg_copydist is undefined) and ansible_os_family == "Debian"
14
14
sudo : yes
15
15
16
16
- name : ensure dependencies (RedHat)
34
34
shell : sysctl kernel.sem='1000 128000 128 512'
35
35
sudo : yes
36
36
37
- - name : increase open files
38
- shell : " echo '{{ansible_ssh_user}} soft nofile 65535' > /etc/security/limits.d/cluster.conf"
39
- args :
40
- creates : " /etc/security/limits.d/cluster.conf"
37
+ - name : increase max open files
38
+ lineinfile :
39
+ dest : /etc/security/limits.d/cluster.conf
40
+ line : " {{item}}"
41
+ state : present
42
+ with_items :
43
+ - ' {{ansible_ssh_user}} soft nofile 65535'
44
+ - ' {{ansible_ssh_user}} hard nofile 65535'
41
45
sudo : yes
42
46
43
47
# ############################################################################
You can’t perform that action at this time.
0 commit comments