Changes related to compile_role

This commit contains changes related to the compile_role
task.