I checked a few more things.

python-apt and python3-apt are the same version on the remote server that 
doesn't work right as it is on the vagrant vm that does work right. 
0.9.3.5ubuntu2.

I cleared out old tmp data from .ansible.

I tried using my automated user on another remote server instead of my 
local laptop.

I changed the package_staging directory to a local directory instead of an 
nfs mount.

I made sure fact_caching = memory. Or, rather, made sure it is not manually 
set in ansible.cfg. It's commented out. 'Course, if that was the issue, it 
should have caused the vagrant vm to not work either. 

It's obviously got to be something on my remote server causing this. But 
I'm at a loss as to what more I can check...



On Thursday, January 11, 2018 at 11:11:32 AM UTC-8, David Reagan wrote:
>
> Oh fun, I get to be weird...
>
> # dpkg --field duplicati.deb Version
>> 2.0.1.73-1
>>
>
> and:
>
> # dpkg --field duplicati.deb Version
>> 2.0.1.73-1
>>
>
> But ansible still reinstalls the package when I run the playbook. 
>
> I have tested this on more than one remote server, with the same results.
>
> Of course, a 14.04 vagrant vm doesn't display this behavior. 
>
> Could the package version get cached somewhere and Ansible is just reading 
> the wrong version?
>
> Any other ideas?
>
> On Tuesday, January 9, 2018 at 11:09:51 AM UTC-8, Kai Stian Olstad wrote:
>>
>> On Tuesday, 9 January 2018 19.33.29 CET David Reagan wrote: 
>> > Changing to force: no and update_cache: no did not make a difference. 
>> > force: yes and update_cache: no also did not make a difference. 
>> > 
>> > It seems to me that, maybe, the apt module isn't able to see the 
>> version of 
>> > the .deb file is the same as the installed version. How does the apt 
>> module 
>> > check the versions? 
>>
>> "dpkg --field filename.deb Version", it's using the python apt module to 
>> check what version is installed. 
>>
>>
>> > Or does it just run apt and let apt deal with that? 
>>
>> apt command cannot install deb files so dpkg is used for that but the apt 
>> module is checking the version and only run dpkg when it's needed (down- or 
>> upgrade). 
>>
>> For me this work with Ansible 2.4.2, it only installs the deb when the 
>> version in the file differ from what's installed. 
>>
>>
>> -- 
>> 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/4bbd0601-67f4-4866-9a48-a3ea95b70bc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to