I have no experience with writing modules, but I would look at existing
modules that are as similar as possible, and then use those for information
and inspiration.




On Mon, 5 Dec 2022 at 09:23, phillip.from.oz <[email protected]>
wrote:

> Hi,
> When writing Ansible custom module, how is the code (python) connect to
> the remote host?
>
> Is it the code of the Ansible custom module responsible for ssh to the
> remote host?
> If so how do I get the host I'm supposed to connect to?
> If so, how do I get the required credentials for the host?
>
> An example would be great!
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/f0e6bf0f-5987-424e-8db0-d160065a28f7n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/f0e6bf0f-5987-424e-8db0-d160065a28f7n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Sent from Gmail Mobile

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLbJsJi0akfVEurTx6iQWU3LVNq4fmFs6xAB_by4AnTLow%40mail.gmail.com.

Reply via email to