-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheprintsPostInstall.yml
54 lines (43 loc) · 1.34 KB
/
eprintsPostInstall.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
- name: oel 7.5 post install eprints tasks
remote_user: ulsprovision
hosts: eprints
become: yes
tasks:
- name: /opt/eprints3/var to 770
file:
path: /opt/eprints3/var
mode: '770'
- name: /opt/eprints3/lib/epm/ to 770
file:
path: /opt/eprints3/lib/epm/
mode: '770'
- name: upload eprints.conf
copy:
src: resources/eprints.conf
dest: /etc/httpd/conf.d/
- name: selinux httpd_sys_script_rw_t /opt/eprints3/archives/.*
sefcontext:
target: '/opt/eprints3/archives/.*'
setype: httpd_sys_script_rw_t
state: present
- name: Apply context /opt/eprints3/archives/.*
command: restorecon /opt/eprints3/archives/.*
- name: selinux httpd_sys_script_rw_t /opt/eprints3/var/.*
sefcontext:
target: '/opt/eprints3/var/.*'
setype: httpd_sys_script_rw_t
state: present
- name: Apply context /opt/eprints3/var/.*
command: restorecon -irv /opt/eprints3/var/.*
- name: selinux httpd_sys_script_rw_t /opt/eprints3/lib/.*
sefcontext:
target: '/opt/eprints3/lib/.*'
setype: httpd_sys_script_rw_t
state: present
- name: Apply context /opt/eprints3/lib/.*
command: restorecon -irv /opt/eprints3/lib/.*
- name: selinux httpd_can_network_connect
seboolean:
name: httpd_can_network_connect
state: yes
persistent: yes