Re: [ansible-project] Re: How to loop over list while pulling data from different list?

2015-03-06 Thread Jack Martin
Hi Clay, My understanding is that list_of_dict, being a list, should be indexed by integer and not by a string such as 'd01'. Try the code in Chip's response; it runs successfully. Cheers, Jack On Fri, Mar 6, 2015 at 2:25 AM, Clay Ye clay...@gmail.com wrote: the above code got this error

[ansible-project] How to loop over list while pulling data from different list?

2015-03-04 Thread Jack Martin
Hello, I'm encountering a loop issue that I'm unsure how to solve cleanly. Suppose I have a list of dictionaries: list_of_dict: - { key: d01, value: 'v1' } - { key: d02, value: 'v2' } ... - { key: d99, value: 'v99' } Somewhere else I have another list whose elements are a subset of the keys

Re: [ansible-project] Ansible Roles in 1.8.4 - Still inferior to include files for complex playbooks?

2015-02-23 Thread Jack Martin
On Mon, Feb 23, 2015 at 5:17 PM, Timothy Gerla t...@gerla.net wrote: Some replies inline! Thanks for all the help! I'll reply inline too. On Mon, Feb 23, 2015 at 1:41 PM, jack.martin8...@gmail.com wrote: From Ansible doc http://docs.ansible.com/playbooks_roles.html#introduction: Roles