I\'m using Ansible to setup EC2 instances and deploy an app. There\'s a hosts script which gathers tags related servers and groups info. I\'d like to run these actions as a
Take a look at add_host.
It does add a host (and alternatively a group) to the ansible-playbook in-memory inventory