# filter out all elements not with x > 5
a = [el for el in data if el['x'] > 5]
# get all the 'c' attributes as a list
b = [el['c'] for el in data]
# get all the 'c' attributes for the elements with x > 5
c = [el['c'] for el in data if el['x'] > 5]
In Jinja2:
a: {{ data | selectattr('x', 'gt', 5) | list }}
b: {{ data | map(attribute='c') | list }}
c: {{ data | selectattr('x', 'gt', 5) | map(attribute='c') | list }}
-
https://github.com/pallets/jinja/issues/1068Ce truc obscur qui t'arrive et où la solution se trouve au fond d'une PR
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
-
https://github.com/ansible/ansible/issues/32499Great article via cron.weekly
-
http://tjheeta.github.io/2015/04/15/ansible-vs-chef/Pour installer xymon rapidement
via doo
-
https://github.com/theonlydoo/configz/tree/master/roles/xymonIntro ansible par un fan
Via arnaudb
-
http://www.rigelgroupllc.com/blog/2013/06/10/devops-for-people-who-hate-devops/