Hi Kai, thanks for helping!
On Sat, Mar 31, 2018 at 09:39:37PM +0200, Kai Stian Olstad wrote: > On Saturday, 31 March 2018 20.35.46 CEST Marc Haber wrote: > > First ansible run: > > [51/5036]mh@drop:~/git/zgansibletest (master * u+1) (crm) $ > > ansible-playbook --ask-become-pass --inventory=hosts.yml site.yml > > <snip /> > > > TASK [common : zda-sid-mc.list] > > ********************************************************************************************************************* > > changed: [sid01] > > changed: [sid02] > > > > RUNNING HANDLER [common : apt update] > > *************************************************************************************************************** > > changed: [sid01] > > Here is the problem, the task zda-sid-mc.list is changed on both host but > only one of them run the handler. > Why this happen i don't know but at fist glance it looks like a bug. > What is your Ansible version? All systems in the test setup are Debian unstable, which ansible 2.5.0. > You could also try more detailed logging to see if that gives more info: > ANSIBLE_STDOUT_CALLBACK=debug ansible-playbook -vvv --ask-become-pass > --inventory=hosts.yml site.yml That's 98 kB, too much for this list. I have uploadd to http://q.bofh.de/~mh/stuff/ansible-log.txt What confuses me is that no handling of the presentsourceslistfiles variable is logged at all. > You have linked the removal of the files on the creating of zda-sid-mc.list, > since this was created in you first run it's not created now, as you can see > the ok status on zda-sid-mc.list task. Have I? I don't think so. From the creation of zda-sid-mc.list, I only notify the apt update handler which only does apt update. Building the present/wantedsourceslistfiles is always done in the common task, and always executed in the zzhandleapt task. At least that's what I wanted to write. Didn't I do that? Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 -- 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/20180402145327.36fye3qo4qe7lfg2%40torres.zugschlus.de. For more options, visit https://groups.google.com/d/optout.