A barman who admitted having images and videos of children being raped and abused has been ordered to sign the sex offenders register.