I am trying to write my first custom module and cannot find how to locate an ansible var that is not part of the task parameters sent. For example, let's say I want to find the ansible_ssh_host or inventory_hostname and they are not in the environment vars. I searched for import ansible.constants but could not find any examples or if this is the right module to call for this.
Any help would be much appreciated. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/887763e4-ec86-4f09-b8f6-4f51dac135ca%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
