StackStorm-Exchange / stackstorm-ansible

st2 content pack containing ansible integrations
https://exchange.stackstorm.org/
Apache License 2.0
36 stars 28 forks source link

ansible doesn't support dynamic inventory #21

Closed bartwalczak1 closed 7 years ago

bartwalczak1 commented 7 years ago

We run ansible on aws account, and slowly implement st2 to expose some ops tasks via chatops. It seems that the pack doesn't support dynamic inventory? Are there plans to add this functionality? As a workaround I run ec2.py via local-shell-cmd runner, but of course this isn't right way. Thanks -B

bartwalczak1 commented 7 years ago

turns out I've missed list_hosts param which should be set to true when executing action, ie:

st2 action execute ansible.command_local inventory_file='./ec2.py' list_hosts=true