'Return a Failure when running an Ansible command.
:param error: ``str``  Error that occurred.
:param rc: ``int``     Return code while executing an Ansible command.
:param msg: ``str``    Message to report.'

def failure(self, **kwargs):

    self.module.fail_json(**kwargs)
