blob: 504049f3cf4ef29b81943d0a9b8fa7da5a40d9a8 (
plain)
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
|
---
#
# Setup paste
#
- name: install needed packages
yum: pkg={{ item }} state=present
with_items:
- sticky-notes
- php-cli
- php-common
- php-mbstring
- php-mysql
- php-geshi
- php-pdo
- httpd
- httpd-tools
- rsync
tags:
- packages
- name: Fedora branding
copy: src=skins/fedora/ dest=/usr/share/sticky-notes/skins/fedora owner=root group=root mode=775
tags:
- config
- name: sticky-notes httpd config
copy: src=sticky-notes.conf dest=/etc/httpd/conf.d/sticky-notes.conf owner=root group=root mode=644
tags:
- config
notify: restart httpd
- name: sticky-notes php config
template: src=config.php dest=/etc/sticky-notes/config.php owner=apache group=apache mode=600
tags:
- config
notify: restart httpd
- name: php post limit config
copy: src=sticky-notes.ini dest=/etc/php.d/sticky-notes.ini owner=root group=root mode=644
notify: restart httpd
- name: timeout in case url.ca goes down
copy: src=class_urlshort.php dest=/usr/share/sticky-notes/classes/class_urlshort.php owner=root group=root mode=644
notify: restart httpd
- name: set sebooleans so paste can talk to the db
seboolean: name=httpd_can_network_connect_db state=true persistent=true
- name: startup apache
service: name=httpd enabled=yes state=started
|