Add paste to ansible. Ticket 4231. Thanks adimania
This commit is contained in:
parent
c3a5f73b6a
commit
c76f5b8c66
52 changed files with 1799 additions and 0 deletions
53
roles/paste/tasks/main.yml
Normal file
53
roles/paste/tasks/main.yml
Normal file
|
@ -0,0 +1,53 @@
|
|||
---
|
||||
#
|
||||
# Setup paste
|
||||
#
|
||||
- name: install needed packages
|
||||
yum: pkg={{ item }} state=installed
|
||||
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=root group=root 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=classes/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
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
Loading…
Add table
Add a link
Reference in a new issue