rundeck-plugins / ansible-plugin

Ansible Integration for Rundeck
MIT License
331 stars 100 forks source link

How to set default directory for ansible source? #271

Open shamsalmon opened 4 years ago

shamsalmon commented 4 years ago

I have yet to figure out how to set a default directory for an ansible source. I tried setting project.ansible-base-dir-path = my-playbook-dir but that does not work.

The issue is ansible source is trying to run the playbook outside the local directory. My inventory requires group_vars to be accessible due to service accounts being separated out in groups by inventory. This will only happen when it is run from the same directory as group_vars.

My workaround was to set a symbolic link from inventory/groups_vars to ./group_vars... I would prefer to not have to do that.