Skip to content

Commit

Permalink
Restart minio service on binary or service config update
Browse files Browse the repository at this point in the history
  • Loading branch information
sberthier committed Jul 19, 2019
1 parent 61c242e commit d59d46c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---

- name: reload minio systemd
systemd:
name: minio
daemon_reload: True

- name: restart minio
service:
name: minio
Expand Down
5 changes: 5 additions & 0 deletions tasks/install-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
until: _download_server is succeeded
retries: 5
delay: 2
notify: restart minio

- name: Generate the Minio server envfile
template:
Expand All @@ -58,6 +59,9 @@
owner: "root"
group: "root"
when: ansible_service_mgr == "systemd"
notify:
- reload minio systemd
- restart minio

- name: Create the Minio server init.d config
template:
Expand All @@ -67,6 +71,7 @@
group: "root"
mode: 0750
when: ansible_service_mgr != "systemd"
notify: restart minio

- name: Enable and start the Minio service
service:
Expand Down

0 comments on commit d59d46c

Please sign in to comment.