On Sunday, 21 October 2018 21:33:21 CEST Frank Thommen wrote:
> On 10/21/2018 10:16 AM, Kai Stian Olstad wrote:
> > On Sunday, 21 October 2018 06:09:38 CEST LJMedina wrote:
> >> Hello!
> >> Unfortunately, we are using version 2.4, don't think upgrading is an option
> >> (at least at this point) any other ideas ?
> >
> > What are the part that you struggle with?
> > For the IP you can do something like this
> >
> > - debug: msg="11.11.11.{{ ansible_default_ipv4.address.split('.').3 }}"
>
> sorry, dummy question: But where does the "split" come from? It's not a
> YAML statement, its not a standard Jinja2 filter and its not one of the
> special ansible Jinja2 filters. I'm confused.
Jinja is a template language for Python.
I guess a Jinja strings has some, if not all the method a Python string object
has
https://docs.python.org/2/library/stdtypes.html#str.split
--
Kai Stian Olstad
--
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/3562460.3BG4jjzy3C%40x1.
For more options, visit https://groups.google.com/d/optout.