diff --git a/roles/distgit/pagure/tasks/main.yml b/roles/distgit/pagure/tasks/main.yml index e6ad74df7c..f18469be39 100644 --- a/roles/distgit/pagure/tasks/main.yml +++ b/roles/distgit/pagure/tasks/main.yml @@ -83,7 +83,6 @@ owner=pagure group=postfix mode=0640 with_items: - { file: pagure.cfg, location: /etc/pagure } - - { file: pagure_hook.cfg, location: /etc/pagure } - { file: alembic.ini, location: /etc/pagure } tags: - config @@ -92,6 +91,19 @@ notify: - restart apache +- name: pagure configuration for the hooks + template: src={{ item.file }} + dest={{ item.location }}/{{ item.file }} + owner=pagure group=packager mode=0640 + with_items: + - { file: pagure_hook.cfg, location: /etc/pagure } + tags: + - config + - web + - pagure + notify: + - restart apache + - name: create the database scheme command: /usr/bin/python2 /usr/share/pagure/pagure_createdb.py changed_when: "1 != 1"