combine vars only if needed

combine vars only if needed, it might take a long time (16s+ on 453 groups and 132 hosts), do not step in it if no vault_password given.