update ansible files to avoid the  deprecation warning