Merge pull request #184 from nautikos1235/fix-handlers

Fixed handlers yaml format
This commit is contained in:
Sergei Antipov 2019-10-27 19:24:29 -07:00 committed by GitHub
commit 4632f4b909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 4 deletions

View File

@ -6,19 +6,27 @@
when: ansible_service_mgr == "systemd" and mongodb_manage_service
- name: mongodb reload
service: name={{ mongodb_daemon_name }} state=reloaded
service:
name: "{{ mongodb_daemon_name }}"
state: reloaded
when: mongodb_manage_service|bool
- name: mongodb restart
service: name={{ mongodb_daemon_name }} state=restarted
service:
name: "{{ mongodb_daemon_name }}"
state: restarted
when: mongodb_manage_service|bool
- name: mongodb-mms-monitoring-agent restart
service: name=mongodb-mms-monitoring-agent state=restarted
service:
name: mongodb-mms-monitoring-agent
state: restarted
when: mongodb_manage_service|bool
- name: restart sysfsutils
service: name=sysfsutils state=restarted
service:
name: sysfsutils
state: restarted
- name: service started
service: