Files
fedora-infra_ansible/roles/modernpaste/tasks/main.yml
Ricky Elrod 0659dd5e68 add stickynotes2modernpaste config
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
2017-02-16 00:25:08 +00:00

78 lines
2.0 KiB
YAML

---
- name: install needed packages
package: pkg={{ item }} state=present
with_items:
- python-psycopg2
- httpd
- mod_wsgi
- python2-mock
- modern-paste
- stickynotes2modernpaste
tags:
- packages
- modernpaste
- name: modernpaste config
template: src=config.py dest=/etc/modern-paste/config.py owner=apache group=apache mode=600
tags:
- config
- modernpaste
notify: reload httpd
- name: stickynotes2modernpaste config
template: src=config.ini dest=/etc/stickynotes2modernpaste/config.ini owner=root group=root mode=644
tags:
- config
- modernpaste
notify: reload httpd
- name: modernpaste flask config
template: src=flask_config.py dest=/etc/modern-paste/flask_config.py owner=apache group=apache mode=600
tags:
- config
- modernpaste
notify: reload httpd
- name: modernpaste apache config
copy: src=modern-paste.conf dest=/etc/httpd/conf.d/modern-paste.conf owner=root group=root mode=644
tags:
- config
- modernpaste
notify: reload httpd
- name: Apply modernpaste hotfixes for forcing 1 week expiry (1)
copy: src=post.html dest=/usr/share/modern-paste/app/templates/paste/post.html owner=root group=root mode=644
tags:
- hotfix
- modernpaste
notify: reload httpd
- name: Apply modernpaste hotfixes for forcing 1 week expiry (2)
copy: src=paste.py dest=/usr/share/modern-paste/app/api/paste.py owner=root group=root mode=644
tags:
- hotfix
- modernpaste
notify: reload httpd
- name: Script for manual paste deactivation
copy: src=deactivate-paste.py dest=/usr/local/bin/deactivate-paste.py owner=root group=root mode=755
tags:
- modernpaste
- name: Script for paste information
copy: src=paste-info.py dest=/usr/local/bin/paste-info.py owner=root group=root mode=755
tags:
- modernpaste
- name: set sebooleans so paste can talk to the db
seboolean: name=httpd_can_network_connect_db state=true persistent=true
tags:
- config
- selinux
- modernpaste
- name: startup apache
service: name=httpd enabled=yes state=started
tags:
- modernpaste