summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2017-08-17 15:48:35 +0000
committerRalph Bean <rbean@redhat.com>2017-08-17 15:48:35 +0000
commit01b3d982e34bd15c91c6b77a997e42e291d9fbed (patch)
treee4eb15bdb96b8e2c39095e6f3a9681f9815eea0f
parent708abe44ff18d5f81df1dfe5ee635a38a3b68828 (diff)
downloadansible-01b3d982e34bd15c91c6b77a997e42e291d9fbed.tar.gz
ansible-01b3d982e34bd15c91c6b77a997e42e291d9fbed.tar.xz
ansible-01b3d982e34bd15c91c6b77a997e42e291d9fbed.zip
We only need the koji sync fedwatch glue on bodhi-backend01.
-rw-r--r--roles/bodhi2/backend/tasks/main.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/bodhi2/backend/tasks/main.yml b/roles/bodhi2/backend/tasks/main.yml
index 340f09d2b..e469f9f94 100644
--- a/roles/bodhi2/backend/tasks/main.yml
+++ b/roles/bodhi2/backend/tasks/main.yml
@@ -174,6 +174,7 @@
- name: configure fedwatch to sync packages as soon as requests are process.
copy: src=fedwatch.conf dest=/etc/fedwatch.conf
+ when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
notify: restart fedwatch
tags:
- bodhi
@@ -184,12 +185,14 @@
src: koji-sync-fedwatch-glue.py
dest: /etc/fedwatch.d/koji-sync-fedwatch-glue.py
mode: 0755
+ when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
tags:
- bodhi
- fedwatch
- name: start fedwatch
service: name=fedwatch enabled=yes state=started
+ when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
tags:
- bodhi
- fedwatch