I have some lookup plugins that I’d like to move to Ansible 2.5.0.
Parts of the code:
imports:
from ansible.constants import p, get_config
and then in the code I can do:
passwordstate_uri = get_config(p, passwordstate_config, "passwordstate_uri", "PASSWORDSTATE_URI","")
This would read the "passwordstate_uri from ansible config, or optionally the PASSWORDSTATE_URI envvar. However, in Ansible 2.5.0 all of this is gone.
What’s the recommended way to read from ansible.cfg in Ansible 2.5.0?
I’m assuming that this is related: https://github.com/ansible/ansible/issues/25820