Re: [ansible-project] jinja help

2018-02-13 Thread Kai Stian Olstad
On Tuesday, 13 February 2018 20.01.05 CET John Harmon wrote:
> Is there a good place to find out what I can/can't do for this kind of 
> stuff (maybe even just a cheat sheet)?  I don't know anything about jinja 
> and don't know the best place to start.  Also, how would you change the 
> above to exclude "sql-db" when in the ansible_hostname fact?

The Jinja template documentation is always a good start/read
http://jinja.pocoo.org/docs/2.10/templates/

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3434931.yMkEDOKKrt%40x1.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] jinja help

2018-02-13 Thread John Harmon
I need to take this and do the opposite:
when: ansible_hostname | lower | search ("sql-db")

ie: when: not(ansible_hostname | lower | search ("ebs-db"))

Is there a good place to find out what I can/can't do for this kind of 
stuff (maybe even just a cheat sheet)?  I don't know anything about jinja 
and don't know the best place to start.  Also, how would you change the 
above to exclude "sql-db" when in the ansible_hostname fact?

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/01984ddb-5e50-445d-8c0b-c5836feb7246%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.