start mongodb

This commit is contained in:
Robert Kaussow 2017-12-22 13:34:38 +01:00
parent 931fabc9fb
commit 683ded1821
1 changed files with 7 additions and 0 deletions

View File

@ -17,5 +17,12 @@
state: latest
notify:
- mongod_restart
- name: Make sure mongodb is running
systemd:
name: mongod
state: started
enabled: yes
daemon_reload: yes
become: True
become_user: root