diff --git a/tasks/install.yml b/tasks/install.yml index 87e68f9..6f860e7 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -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