Refer to scripts inside pack directory

I am trying to invoke an ansible script that I have stored in an artifact directory inside the pack. It lives at the same level as actions and rules directory. How can I refer to the file from inside the rule?

1 Like

Any help on this would be appreciated!

@hnanchahal See the Aws pack. You should use a scripts directory in the actions directory. E.g.: ./packname/actions/scripts. I’ve had good luck calling shell commands.

Another approach would be to use the ansible pack to run the script with your file from an Orqueata workflow. :grinning:

Here’s a pretty old example that I’ve been successful recreating this in spirit.

https://stackstorm.com/2015/01/14/managing-aws-instance-lifecycle-with-stackstorm/