-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Thanks for the help, now I understand.
For other peoples who could google this thread:
The actual code of a template module here[1].
1.
https://github.com/ansible/ansible/blob/devel/lib/ansible/runner/action_plugins/template.py
On 12/15/2014 04:26 PM, Michael DeHaan wrote:
> I am not sure if I scrubbed any/all references to a "virtual
> module" yet, but that what really means is an "action_plugin".
>
> The template module for instance consists of componentry that runs
> on the ansible control machine (the action_plugin "template") as
> well as the remote side (the regular module "template").
>
> (More of a topic for ansible-devel list really)
>
> Anyhow, the template action_plugin isn't really easily reusable,
> due to the way it's written to just pair with the "template" module
> on the other side.
>
>
>
>
> On Sun, Dec 14, 2014 at 7:19 PM, Dmitry Moskowski <
m...@corpix.ru>
> wrote:
>>
> Hello.
>
> I am writing a custom module that works with files for my
> needs(it's my first module for Ansible) and I want to have
> templating system support. I have looked at template module source
> code[1] in core modules repository and can't understand... where is
> the actual module code and what is "virtual module"? Maybe someone
> could provide a documentation link on this?
>
> Thanks.
>
> 1.
>
>
https://github.com/ansible/ansible-modules-core/blob/devel/files/template.py#L1
>>
>>
>
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJUjzLbAAoJELEDc0wJQMdg/P4QAIHBo7PoyLvh3hWo34RbJ6y4
ctPgJFOZZdAtD/M2NPfuBV6NGporQLFJL+BCv2I3iFan30Jio0eHKkiUxAZE3/fO
XlBIjCKuhwik/FBtKZo7p3iRaCKpuX+sZ2R5jXzhyLOohvo4QAnrJQVDyexlWTHD
U8JQ8ZdabfGW+/QbSohrddrTSwrDJsrTiXP6JGyWv/ca/hA7zFExScwylUKmeVXH
dl1hXG443RqvaRo6ZUeH2hCm7MkMlTtCI+BJmttj1VOVbf6+viguD8D9GzAIxvy4
Vpim5rBHs71rNl8srL1bBmv24up+/QGwraDzjrxPRqgwu9jiJzrfgIER+ZHuYTuk
v/vSrCLogM6IEu8HpvPoFMMta/233MWB4Muv3Lc9qm5wfgSL3fffjzP0rHcH4UP/
EoGlmJYBZsUOlEA4VDfCIl2B8Qj17iOmUVfysm8sOw4/PJvGyEPuqflt8+PjEjBr
mvr4AJwd45+xg7xmXa7zwZ6mRi0Sbs+czYgfRJML15vqFu1vdnHKXiaMHUXBH6S8
zd8K5MX6Ca/Dxn58hO//lQp+016Di3ehFCZxuxF2CUWkLdS5gZVvMX7tEECtah4p
eEjAE7zmvO0e9GdKLHEsyaCxw9Ep3UTeGxtIDvJ3mXPIjUVmj3+OFxKyWzYTP42M
UfTeYtbkVDKUUOoOxfIB
=cz0N
-----END PGP SIGNATURE-----