[libvirt] [jenkins-ci PATCH 4/5] guests: Create ccache symlink farm

Andrea Bolognani abologna at redhat.com
Fri Apr 20 13:06:48 UTC 2018


On Thu, 2018-04-19 at 17:36 +0200, Martin Kletzander wrote:
> > Replicate the setup in the user's ~/.ccache directory so
> > that it works across all guests. With the linke farm in
> 
> s/linke/link/ ?

Close: I actually meant to write Linkle[1] :P

> > - name: '{{ flavor }}: Configure ccache'
> >   file:
> > -    path: /home/{{ flavor }}/.ccache
> > +    path: /home/{{ flavor }}/.{{ item }}
> >     state: directory
> >     owner: '{{ flavor }}'
> >     group: '{{ flavor }}'
> > +  with_items:
> > +    - ccache
> > +    - ccache/bin
> 
> With new enough ansible, you don't need the 'ccache' entry as this
> behaves similarly to `mkdir -p`:
> 
>   "If directory, all immediate subdirectories will be created if they do
>   not exist, since 1.7 they will be created with the supplied
>   permissions." [1]

If you dig through the playbooks, you'll certainly find no lack of
suboptimal or roundabout approaches to the problem at hand, mostly
as a consequence of me pretty much figuring out Ansible as I went.

I'll be make to get rid of this specific instance before pushing.
More patches in the spirit would be very much welcome O:-)


[1] https://zelda.gamepedia.com/Linkle
-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list