I am passing a variable to ansible with `--extra-vars "lan=10.10.10.1"`

I now need to increment this ip address so that the last octet is .2 so it will equal 10.10.10.2.

How would this be achieved in ansible?