Skip to content

Commit

Permalink
stop supervisor service before upgrade
Browse files Browse the repository at this point in the history
* buildbot refuses to upgrade if it's running
  • Loading branch information
Mikhail Sobolev committed Jan 5, 2015
1 parent caee13a commit 64e13c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roles/bb-master/tasks/main.yml
Expand Up @@ -11,6 +11,11 @@
accept_hostkey: True
register: bb_repo_state

- name: stop Supervisor service
shell: "supervisorctl stop {{ bb_service }}"
ignore_errors: True
when: "bb_repo_state|changed"

- name: Install/upgrade build master
sudo_user: "{{ bb_user }}"
script: "install-master {{ bb_user_home }}/{{ buildbot_short }} {{ bb_env_dir }}"
Expand Down

0 comments on commit 64e13c4

Please sign in to comment.