Add getroles script.
Fix indentation for perl template.