mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-28 20:42:20 +08:00
39 lines
851 B
YAML
39 lines
851 B
YAML
---
|
|
- name: install needed packages
|
|
package: pkg={{ item }} state=present
|
|
with_items:
|
|
- python-psycopg2
|
|
- httpd
|
|
- mod_wsgi
|
|
- python2-mock
|
|
- modern-paste
|
|
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: 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: 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
|