Re: [ansible-project] How can I return a list from a dict based on a sub items value?

2019-08-07 Thread David Reagan
Thanks! That got me to where I wanted. - David On Wednesday, August 7, 2019 at 11:58:26 AM UTC-7, Kai Stian Olstad wrote: > > On 07.08.2019 20:07, David Reagan wrote: > > How can I return a list from a dict based on a sub items value? > > > > If I have a dictionary like this: > > > >

Re: [ansible-project] How can I return a list from a dict based on a sub items value?

2019-08-07 Thread Kai Stian Olstad
On 07.08.2019 20:07, David Reagan wrote: > How can I return a list from a dict based on a sub items value? > > If I have a dictionary like this: > > ospackages: >>fail2ban: >> state: "present" >> Ubuntu: >>1604: "fail2ban" >>1804: "fail2ban" >> Debian: >>

[ansible-project] How can I return a list from a dict based on a sub items value?

2019-08-07 Thread David Reagan
How can I return a list from a dict based on a sub items value? If I have a dictionary like this: ospackages: > fail2ban: > state: "present" > Ubuntu: > 1604: "fail2ban" > 1804: "fail2ban" > Debian: > 9: "fail2ban" > CentOS: > 7: "fail2ban" >