On 5/9/20 9:09 AM, Marc Haber wrote:
> On Sat, May 09, 2020 at 08:53:37AM +0200, Stefan Hornburg (Racke) wrote:
>> I don't have a custom module around which I could share here. Searching the 
>> web
>> for "ansible custom module" should give you plenty of insights though.
> 
> Are you trying to say that a plain custom module called from a task (a)
> has access to the full inventory including all variables and (b) can
> write to it with following tasks seeing the changes it did?
> 
> Greetings
> Marc
> 

That's a good question :-). But you can also write filter plugins which is 
probably a better
idea.

This would allow you do augment your data structure with

"{{ data | augment }}"

You can find an example here: 
https://blog.oddbit.com/post/2019-04-25-writing-ansible-filter-plugins/

Regards
         Racke

-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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/d9b3740e-e76e-85b7-bc51-64cffd0ce561%40linuxia.de.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to