Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart minio service on binary or service config update #38

Merged
merged 1 commit into from
Jul 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
SuperQ marked this conversation as resolved.
Show resolved Hide resolved
- 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