Re: [ansible-project] module development and 'with_items'

2015-10-02 Thread Tim Chambers
FWIW, that code uses type(name) == type(''): etc., where isinstance(name,str ): (same for list) would be much more Pythonic. On Monday, January 6, 2014 at 5:52:59 PM UTC-7, Dmitry Makovey wrote: > > I think I've got it: > > http://pastebin.com/NCgAhVjF > > ... > -- You received this message

Re: [ansible-project] module development and 'with_items'

2015-09-30 Thread Tim Chambers
If this was StackExchange I'd upvote. Instead, I'll leave this note of endorsement. This example is exactly what I was looking for! It isn't specific to packaging at all. It's a general purpose solution to passing arguments into modules. Too bad apt, yum, and pkgng have already been hacked.

[ansible-project] Re: module development and 'with_items'

2015-09-30 Thread Tim Chambers
I ran into this problem today. I found with_items but with single module call discussed on ansible-devel. I know this thread is old, but has anything changed? I see no discussion of Brian Coca's wantarray patch on