Skip to content

Commit

Permalink
Use the 'service' module for rexray service
Browse files Browse the repository at this point in the history
Instead of "rexray service ...", rely on the OS to start the service
through it's init system.
  • Loading branch information
codenrhoden committed Feb 4, 2016
1 parent 7b6d189 commit f51d177
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
- name: restart rexray
command: rexray service restart
service:
name: rexray
state: restarted
when: rexray_service
5 changes: 4 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@

- include: config.yml

- include: service.yml
- name: ensure rexray is running
service:
name: rexray
state: started
when: rexray_service
4 changes: 0 additions & 4 deletions tasks/service.yml

This file was deleted.

0 comments on commit f51d177

Please sign in to comment.