fix ansible installation error in centos and ubuntu