mirror of
https://github.com/atosatto/ansible-minio.git
synced 2025-01-06 18:28:13 +01:00
Merge pull request #38 from sberthier/restart-service-on-update
Restart minio service on binary or service config update
This commit is contained in:
commit
c4c442ca34
@ -1,5 +1,10 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
- name: reload minio systemd
|
||||||
|
systemd:
|
||||||
|
name: minio
|
||||||
|
daemon_reload: True
|
||||||
|
|
||||||
- name: restart minio
|
- name: restart minio
|
||||||
service:
|
service:
|
||||||
name: minio
|
name: minio
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
until: _download_server is succeeded
|
until: _download_server is succeeded
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
|
notify: restart minio
|
||||||
|
|
||||||
- name: Generate the Minio server envfile
|
- name: Generate the Minio server envfile
|
||||||
template:
|
template:
|
||||||
@ -58,6 +59,9 @@
|
|||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
when: ansible_service_mgr == "systemd"
|
when: ansible_service_mgr == "systemd"
|
||||||
|
notify:
|
||||||
|
- reload minio systemd
|
||||||
|
- restart minio
|
||||||
|
|
||||||
- name: Create the Minio server init.d config
|
- name: Create the Minio server init.d config
|
||||||
template:
|
template:
|
||||||
@ -67,6 +71,7 @@
|
|||||||
group: "root"
|
group: "root"
|
||||||
mode: 0750
|
mode: 0750
|
||||||
when: ansible_service_mgr != "systemd"
|
when: ansible_service_mgr != "systemd"
|
||||||
|
notify: restart minio
|
||||||
|
|
||||||
- name: Enable and start the Minio service
|
- name: Enable and start the Minio service
|
||||||
service:
|
service:
|
||||||
|
Loading…
Reference in New Issue
Block a user