From d57cd515539f7bd2c3bc990bd3e2c33390fc7a5a Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Fri, 15 Apr 2016 00:17:43 +0200 Subject: [PATCH] Don't install config.cfg on koschei-backend-stg --- roles/koschei/backend/tasks/main.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) 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: