mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-27 20:12:54 +08:00
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
---
|
|
# Configuration for the tahrir webapp
|
|
|
|
- name: install needed packages
|
|
package: name={{ item }} state=present enablerepo=epel-testing
|
|
with_items:
|
|
- python-zanata2fedmsg
|
|
- libsemanage-python
|
|
tags:
|
|
- packages
|
|
- zanata2fedmsg
|
|
|
|
- name: make some directories
|
|
file: dest="{{item}}" mode=0755 state=directory
|
|
with_items:
|
|
- /usr/share/zanata2fedmsg
|
|
tags:
|
|
- zanata2fedmsg
|
|
|
|
- name: copy zanata2fedmsg configuration file
|
|
template: >
|
|
src={{ item }} dest="/etc/{{item}}"
|
|
owner=apache group=apache mode=0640
|
|
with_items:
|
|
- zanata2fedmsg.ini
|
|
tags:
|
|
- config
|
|
- zanata2fedmsg
|
|
notify:
|
|
- restart apache
|
|
|
|
- name: copy zanata2fedmsg wsgi script
|
|
copy: >
|
|
src={{ item }} dest="/usr/share/zanata2fedmsg/{{ item }}"
|
|
owner=apache group=apache mode=0644
|
|
with_items:
|
|
- zanata2fedmsg.wsgi
|
|
tags:
|
|
- config
|
|
- zanata2fedmsg
|
|
notify:
|
|
- restart apache
|
|
|
|
- name: copy zanata2fedmsg httpd config
|
|
template: >
|
|
src={{ item }} dest="/etc/httpd/conf.d/{{ item }}"
|
|
owner=apache group=apache mode=0644
|
|
with_items:
|
|
- zanata2fedmsg.conf
|
|
tags:
|
|
- config
|
|
- zanata2fedmsg
|
|
notify:
|
|
- restart apache
|