Ahahaha there are commenters that don't realise that Cloudformation IS the state for your infrastructure that you've provisioned.
Ansible is stateless because every operation is suppose to be idempotent. Unless your ansible is doing a HTTP PUT request to an API I suspect you're misusing the tool for something it's not meant to do.
State is a good thing with infrastructure and terraform got it right.