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 <[email protected]> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > 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 > > iQIcBAEBCAAGBQJUjikSAAoJELEDc0wJQMdg5CUP/irmmKq0KlsXs2u1i8EczIi8 > AtclOq+VzfhY5VR2JFWqe4XvEkYqdmWnJqp/GiqgVNahXLwYV+oLvW4Ek82uhdnr > Ojo0bIV+61OdVvqn7gpHdydBr75U1nT0Tkt3A3xLg4za6SsM0EJf39cQVnOmDAAv > aBybwPxFDCEsvgH5YDQsuVDGGdjsxwMYtGBMIWjrW9t7lcZkpdpfbDThyjCNmZva > W+ol1xLvht7nz6vpDREHIoAdSV7jOSc6JatC0ga2tYzJD+kColQpEeIJXXSg1lU4 > DP4RtQKzFE/0eHpey3xDaj4SO/QcfwezwFxKe9MpDpUOeil5jK3NELMpgTaV4CpL > z/TfrYj0HGdnsJx80W9VBL5lLgSPn3CtGy9GfPbX85QK9Md6xtociRk6DtQSgDmo > b7AhtfVHOU/h3ihYy5BonIrcC0o8GojiiLlT6zLyGmQ1mLR2u9OHjnrRB3xA6Dp3 > XZb5Gf8bTj+hiZzkhfS0inwwW8OxE7BSh2crnLHmTWH4Wm8RcS1LBMi/nfS8b3fR > EMd3EfY9zOfKMOwXn21qdhdjyEGbh2EPl1SdqqySQwgpFGBeTRqX35lRmQhQXmQM > 9pcnaYkskSP4WDiEh81BOPJjwJIoCdhpxwma3aTR0AdKmAVI3HVHhGKgg/CYeEoZ > Feno+Lxi6eEWX4MRTb7H > =buF7 > -----END PGP SIGNATURE----- > > -- > 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/548E2915.6080601%40corpix.ru > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BnsWgyvNCBKj3VNSZW08oWcXzyHqWWe0BYcnFrXB7RKJsGdHQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
