- ansible_net_version is version('16.12.06', '>=') and
ansible_net_version not in ('17.03.02', 17.03.03', ... )
--
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving
Hi Antony,
On second thought, you are right in that condition will always end up
being "true". I guess my requirement can never be written as condition in
ansible.
Regards,
Vikram
On Thursday, 3 June, 2021 at 1:18:08 am UTC+5:30 Antony Stone wrote:
> On Wednesday 02 June 2021 at 21:31:21,
Hi Antony,
My condition to check is:
1.
Version is greater than or is 16.12.02 (i made a typo by entering
16.12.06 instead fo 16.12.02 for 1st condition) AND
2.
Version is NOT certain versions like 16.12.05 OR 16.09.06 OR 17.03.02',
etc as mentioned below.
On Wednesday 02 June 2021 at 21:31:21, Vikram S wrote:
> I have written below script that will end the playbook if IOS version
> running on router satisfies below conditions:
>
>1. Version is greater than or is 16.12.02 AND
>2. Version is NOT certain versions like 16.12.05 OR 16.09.06 OR
I have written below script that will end the playbook if IOS version
running on router satisfies below conditions:
1.
Version is greater than or is 16.12.02 AND
2.
Version is NOT certain versions like 16.12.05 OR 16.09.06 OR 17.03.02',
etc as mentioned below.