diff --git a/handlers/main.yml b/handlers/main.yml index 64820f3..1219026 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,5 +1,10 @@ --- +- name: reload minio systemd + systemd: + name: minio + daemon_reload: True + - name: restart minio service: name: minio diff --git a/tasks/install-server.yml b/tasks/install-server.yml index 109bea8..c3dc61d 100644 --- a/tasks/install-server.yml +++ b/tasks/install-server.yml @@ -41,6 +41,7 @@ until: _download_server is succeeded retries: 5 delay: 2 + notify: restart minio - name: Generate the Minio server envfile template: @@ -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: @@ -67,6 +71,7 @@ group: "root" mode: 0750 when: ansible_service_mgr != "systemd" + notify: restart minio - name: Enable and start the Minio service service: