use foreman v2 api to set or clear hosts' hostgroups