Skip to content

Commit

Permalink
Merge pull request #13 from phillbaker/systemd-restart
Browse files Browse the repository at this point in the history
Add handler for systemd restart.
  • Loading branch information
ahelal authored Jan 2, 2017
2 parents 8389863 + e1ce33d commit e020608
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@
- name: restart concourse-worker macosx
shell: launchctl stop {{ concourseci_launchd_worker }} && launchctl start {{ concourseci_launchd_worker }}
when: "groups[concourseci_worker_group] is defined and inventory_hostname in groups[concourseci_worker_group] and ansible_system == 'Darwin'"

- name: reload systemd
command: systemctl daemon-reload
when: ansible_service_mgr == "systemd"
1 change: 1 addition & 0 deletions tasks/web_nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
dest="/etc/init.d/concourse-web"
mode=0755
notify:
- reload systemd
- restart concourse-web
when: "{{ ansible_system == 'Linux' }}"

Expand Down
1 change: 1 addition & 0 deletions tasks/worker_nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
dest="/etc/init.d/concourse-worker"
mode=0755
notify:
- reload systemd
- restart concourse-worker
when: "{{ ansible_system == 'Linux' }}"

Expand Down

0 comments on commit e020608

Please sign in to comment.