--- - name: Restart mongodb systemd: name: mongod state: restarted enabled: yes daemon_reload: yes listen: - "mongod_restart"