Success !!!! 

Some Learning Assumptions:
=======================

So, this section I think I kinda get - it sets up 'r' to iterate through 
the 'patterns' matches found beneath 'paths'.

 

 

  - yum: 
       name: "{{ r.files | map(attribute='path') | list }}" 

 

 

This must iterate through each match and install it?    Assumptions:

   - Install must be a default, since there's no sign of it.   
   - map(attribute='path' expands to the absolute path of where the match 
   is?  
      -    if so, why is path singlular here, and 'paths' plural is used 
      above? 
      -   how is all this done on a 'name' line?   because default yum 
      behavior is install local...? 
   - list iterates through matches registered to 'r' lets yum default 
   install it? 






On Thursday, September 21, 2017 at 12:50:01 PM UTC-7, Kai Stian Olstad 
wrote:
>
> On 21. sep. 2017 20:51, daddyocruzer wrote: 
> > Hello 
> > 
> > tasks: 
> >    - name:  yum local install 
> >      yum:  name=/sharedfilesystem/*.rpm  state=present 
> > 
> > Our team has several environments that lead up to our production 
> > environment, so patches must be applied and tested in one environment at 
> a 
> > time (as they exist at a specific version 'point-in-time') so I can't do 
> a 
> > blind yum update latest in our production environment -- therefore, I 
> > download the latest available at a point-in-time and apply them to each 
> > environment only once testing has succeeded in the previous environment. 
> > 
> > Can ansible yum module help 'localinstall' patches that have been 
> > pre-downloaded?   (I've only seen yum module work with a single rpm) 
>
>
> The name support a list or comma separated listing. 
>
> So you could do something like this: 
>
>    - find: 
>        paths: /sharedfilesystem 
>        patterns: '*.rpm' 
>      register: r 
>
>    - yum: 
>        name: "{{ r.files | map(attribute='path') | list }}" 
>
>
> -- 
> Kai Stian Olstad 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bb20a7fa-ea8f-4b21-ba8e-1d959d946818%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to