It sounds wrong to enable rabbitmq-server from there. Why is this needed? It's already enabled earlier anyway.

Also, why is the "immediately" part required for the restart?