Hi All. Great work with Ansible!!
I’m trying to use ansible.cfg to specify paths to plugins in a controlled manner. The path varies based on the installation, so I’d like to say something like:
filter_plugins = $PLUGIN_PATH/filter_plugins
action_plugins = $PLUGIN_PATH/action_plugins
And then specify PLUGIN_PATH in the environment when launching ansible-playbook.
It’s not working, apparently because some paths in ansible.cfg have shell variable expansion applied, and others do not. I could specify each of ANSIBLE_FILTER_PLUGINS, ANSIBLE_ACTION_PLUGINS etc. independently, but that’s cumbersome.
Is there any reason that environment variables are not consistently expanded for all of these *_PATH entries? Are you open to a PR that consistently applies shell_expand_path() to all of the paths below?
From constants.py: