Trace:

Table of Contents


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
blog_tech:one_month_with_ansible [2018/02/05 22:11]
admin
blog_tech:one_month_with_ansible [2018/02/05 22:13] (current)
admin
Line 25: Line 25:
   * There are [[http://​docs.ansible.com/​ansible/​latest/​playbooks_loops.html|16 kinds of loops in Ansible]] like <​nowiki>​with_fileglob</​nowiki>​ or <​nowiki>​with_filetree</​nowiki>​. Is it really necessary ?   * There are [[http://​docs.ansible.com/​ansible/​latest/​playbooks_loops.html|16 kinds of loops in Ansible]] like <​nowiki>​with_fileglob</​nowiki>​ or <​nowiki>​with_filetree</​nowiki>​. Is it really necessary ?
  
-  * I wasn't able to increment a variable inside a loop in a jinja2 templates : https://​github.com/​pallets/​jinja/​issues/​641 . This is a feature, not a bug. Incrementing things (like ports) is nevertheless a very basic requirement IMO. Hopefully, a hack has been provided ​(using a list, append and pop).+  * I wasn't able to increment a variable inside a loop in a jinja2 templates : https://​github.com/​pallets/​jinja/​issues/​641 . This is a feature, not a bug. Incrementing things (like ports) is nevertheless a very basic requirement IMO. Hopefully, ​there is workaround ​(using a list, append and pop).
  
   * It isn't possible to match a directory with with_fileglob : https://​github.com/​ansible/​ansible/​issues/​17136. You have to use with_filetree that comes with other constraints.   * It isn't possible to match a directory with with_fileglob : https://​github.com/​ansible/​ansible/​issues/​17136. You have to use with_filetree that comes with other constraints.
blog_tech/one_month_with_ansible.txt · Last modified: 2018/02/05 22:13 by admin