CI: switch to Ubuntu 22.04
- Ubuntu 16.04 has EOL, switch to 22.04
- create an alternative to the
hostnamectl
utility because it cannot be running in Docker container in CI
Edited by Artyom Kartasov
hostnamectl
utility because it cannot be running in Docker container in CI