build/functions,build/common: store the role name at the right place to have the good name in motd and hostname