There are already several filters for text - maybe an existing one would do 
what you need? You can look at 
https://docs.ansible.com/ansible/devel/user_guide/playbooks_filters.html 
<https://docs.ansible.com/ansible/devel/user_guide/playbooks_filters.html> for 
some pointers.

Hope this helps,
Alicia

> On Dec 23, 2019, at 8:11 AM, Vladimir Botka <[email protected]> wrote:
> 
> On Mon, 23 Dec 2019 17:56:07 +0530
> Gopal Chatla <[email protected]> wrote:
> 
>> Is there any way to include python script in ansible playbook for string
>> alignments?
> 
> Try "Filter plugins"
> https://docs.ansible.com/ansible/latest/dev_guide/developing_plugins.html#filter-plugins
> 
> Cheers,
> 
>       -vlado
> 
> -- 
> 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/20191223151103.3f9e60e4%40gmail.com.

-- 
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/C3634494-6BA7-4E12-B283-018855A75E93%40redhat.com.

Reply via email to