Thanks.

# python -c "import apt;print apt.Cache()['duplicati'].installed.version"
> 2.0.1.73-1
>

# dpkg --field duplicati.deb Version
> 2.0.1.73-1
>


I am seriously mystified. What in the world is going on on my servers that 
could cause the version check to fail???

If those commands are the command line equivalents of what the apt module 
is doing, then the check should be equal. 

the apt module only checks the versions when it is deciding to install or 
not, right?

On Thursday, January 11, 2018 at 1:05:48 PM UTC-8, Kai Stian Olstad wrote:
>
> On Thursday, 11 January 2018 21.49.33 CET David Reagan wrote: 
> > 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 
> > >> 
>
> I just browsed the source quickly but it looked like Ansible is running 
> the following to check what version is installed 
> python -c "import apt;print apt.Cache()['duplicati'].installed.version" 
>
>
> -- 
> 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/36f26648-48f7-44bc-a511-096622140742%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to