diff --git a/roles/koschei/backend/tasks/main.yml b/roles/koschei/backend/tasks/main.yml index 40ec979d38..e8cd7d29cf 100644 --- a/roles/koschei/backend/tasks/main.yml +++ b/roles/koschei/backend/tasks/main.yml @@ -22,15 +22,14 @@ - packages - name: install config files + when: env == "staging" template: > src="{{ item }}.j2" dest="/etc/koschei/{{ item }}" owner=koschei group=koschei mode=0400 - # remove config.cfg after split-upgrade with_items: - - config.cfg - config-admin.cfg - config-backend.cfg notify: @@ -42,6 +41,25 @@ - koschei - config +- name: install config files + when: env != "staging" + template: > + src="{{ item }}.j2" + dest="/etc/koschei/{{ item }}" + owner=koschei + group=koschei + mode=0400 + with_items: + - config.cfg + notify: + - restart koschei-polling + - restart koschei-resolver + - restart koschei-scheduler + - restart koschei-watcher + tags: + - koschei + - config + - name: install koschei fedmsg config copy: src=koschei.py dest=/etc/fedmsg.d/koschei.py notify: