Re: [ansible-project] yum repolist -v Output to Vars/Dict and use the data

2020-04-21 Thread 'Spoonless' via Ansible Project
- "{{ repoinfo }}" But I am not getting any output as yet. On Tuesday, April 21, 2020 at 7:00:52 PM UTC+2, Spoonless wrote: > > Trying to get the yum repolist -v data to a json format that I can parse > with Ansible is tricky enough for a beginner. > > On Tuesday

Re: [ansible-project] yum repolist -v Output to Vars/Dict and use the data

2020-04-21 Thread 'Spoonless' via Ansible Project
> Thanks again. > > > > On Monday, April 20, 2020 at 11:26:55 PM UTC+2, Kai Stian Olstad wrote: >> >> On Fri, Apr 17, 2020 at 12:59:09AM -0700, 'Spoonless' via Ansible Project >> wrote: >> > Hi again, >> > >> > Thanks for th

Re: [ansible-project] yum repolist -v Output to Vars/Dict and use the data

2020-04-21 Thread 'Spoonless' via Ansible Project
. (I'll have to get to grips with that part.) Thanks again. On Monday, April 20, 2020 at 11:26:55 PM UTC+2, Kai Stian Olstad wrote: > > On Fri, Apr 17, 2020 at 12:59:09AM -0700, 'Spoonless' via Ansible Project > wrote: > > Hi again, > > > > Thanks for t

Re: [ansible-project] yum repolist -v Output to Vars/Dict and use the data

2020-04-17 Thread 'Spoonless' via Ansible Project
stname.*";) === On Thursday, April 16, 2020 at 1:55:37 PM UTC+2, Kai Stian Olstad wrote: > > On Thu, Apr 16, 2020 at 03:19:33AM -0700, 'Spoonless' via Ansible Project > wrote: > > This is what I am trying to do: > > > > yum repolist -v will give m

Re: [ansible-project] yum repolist -v Output to Vars/Dict and use the data

2020-04-17 Thread 'Spoonless' via Ansible Project
ults.5.stdout }}" repofilename: "{{ output.results.6.stdout }}" - debug: msg: "{{reponame}} is an illegal url" when: repobaseurl is search("ftp://somehostname.*";) == But.. My debug output is now showing all of the repo's an

[ansible-project] yum repolist -v Output to Vars/Dict and use the data

2020-04-16 Thread 'Spoonless' via Ansible Project
Hi all, I am having some difficulty in getting my head around the use of variables, facts and dicts. The Ansible yum module does not give me output from an equivalent yum repolist -v command, so I am using shell for that. This is what I am trying to do: yum repolist -v will give me a list of