Files
fedora-infra_ansible/roles/zanata2fedmsg/tasks/main.yml
Patrick Uiterwijk 936e8b261a yum accepted pkg=, package calls it name=
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2017-10-09 00:38:26 +02:00

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