[lib] deployment: use string instead of hosts objects