I am curious how for example the copy module works. There are no options to pass the user, password or server but somehow it must work. I suspect it uses ssh private keys that are set in ansible.cfg file. Is this how it works and if so how does the copy module access these values? I know I can pass whatever I want into the environment, but was hoping there was an ansible module which could access the values in ansible.cfg. I found the ansible.config.manager module and was wondering if it is used to parse the ansible.cfg file.
On Friday, September 28, 2018 at 8:13:21 PM UTC-5, Brian Coca wrote: > > You cannot, you only have access to the options passed into the module > itself. > > -- > ---------- > Brian Coca > -- 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/81d944fb-2abf-4a42-84b8-d81d124ec3f7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
