install dependencies for CentOS
use the node attribute that stores dependencies for each platform
duplicate installation of dependencies moved out of case-when block