Make error checking part of the ansible abstraction layer