openqa-consumer: restart service on git changes

...otherwise you end up scheduling jobs with stale code and
they fail, NOT THAT THAT'S EVER HAPPENED TO ME
This commit is contained in:
Adam Williamson 2016-03-02 08:07:31 -08:00
parent deaf64ca25
commit 35824c1ad4

View file

@ -121,3 +121,7 @@
- name: Enable and start consumer
service: name=openqa-consumer.service enabled=yes state=started
when: "openqa_consumer is defined and openqa_consumer"
- name: Restart consumer if code changed
service: name=openqa-consumer.service state=restarted
when: "gittools|changed"