Hello,

On Tue, Sep 14, 2021 at 05:49:44PM -0700, flowerysong wrote:
> On Tuesday, September 14, 2021 at 7:20:59 PM UTC-4 Andy Smith wrote:
> 
> > My ansible_distribution_version returns "10". This debug fires: 
> >
> > - name: version 10 < 10.0 
> > ansible.builtin.debug: 
> > msg: 
> > - "I think 10 is older than 10.0" 
> > when: {{ ansible_distribution_version }} is version('10.0', '<') 

> Yes. Compare to the lowest version you want to accept, which is '10'. 

Hmm, OK. It's also that 10 won't come out as >= 10.0 so I'll have to
remember everywhere not to compare to versions with .0 on the end.

Cheers,
Andy

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20210915081128.r2l2drg57m7wv4w5%40bitfolk.com.

Reply via email to