How to restart systemd service with wildcard

sudo systemctl restart "gitlab-*"

will restart all systemd services starting with gitlab-. The " are only neccessary so your shell doesn’t try to interpret the wildcard.