Modify mesos role handlers and fix mesos role tasks.