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:
parent
deaf64ca25
commit
35824c1ad4
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue