write config file in a task.