Getting region on localhost

5 views
Skip to first unread message

Wes Tibbitts

unread,
Feb 8, 2019, 12:35:23 PM2/8/19
to Ansible Project
I'm running a small playbook that runs commands to create AWS infrastructure from the localhost. I want to use the localhosts region as the default, but using instance metadata to get the AZ and then parsing the region just seems hacky. Is there a clean way to get the region for localhost similar to how I can use ec2_region with dynamic inventory?
Reply all
Reply to author
Forward
0 new messages