-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsystem.yml
66 lines (59 loc) · 1.38 KB
/
system.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
- name: systemd status script
copy:
src: files/bin/systemd_status.py
dest: /usr/local/bin/systemd_status.py
mode: '0755'
owner: root
group: root
backup: yes
- name: httpd status script
copy:
src: files/bin/http_status.py
dest: /usr/local/bin/http_status.py
mode: '0755'
owner: root
group: root
backup: yes
- name: dir/file status script
copy:
src: files/bin/dir_status.py
dest: /usr/local/bin/dir_status.py
mode: '0755'
owner: root
group: root
backup: yes
- name: copy postfix main.cf
when: ansible_nodename == 'db.usegalaxy.no'
template:
src: files/system/postfix_main.cf.j2
dest: /etc/postfix/main.cf
mode: '0644'
owner: root
group: root
- name: set mailname
when: ansible_nodename == 'db.usegalaxy.no'
lineinfile:
path: /etc/mailname
line: usegalaxy.no
owner: root
group: root
mode: '0644'
- name: restart postfix
when: ansible_nodename == 'db.usegalaxy.no'
service:
name: postfix
state: restarted
enabled: yes
- name: increase number of nfs server processes
when: ansible_nodename == 'usegalaxy.no'
lineinfile:
state: present
path: /etc/sysconfig/nfs
regexp: '(.*RPCNFSDCOUNT=.*)'
line: RPCNFSDCOUNT=64
- name: restart nfsd
when: ansible_nodename == 'usegalaxy.no'
service:
name: nfs-server
state: restarted
enabled: yes