A Yorkshire man who tried to smuggle around £2m worth of cannabis into the UK while travelling with his children has been jailed.