changing hostname/ipadress

LS,

When a play I write changes the adres or name by which a host is adressed (i.e. ansible_host value) is it possible to tell ansible to use a new value for this target from there on? I am trying to recreate an instance in a cloud. after the recreation some simple lineinfile, user, authorized_key and package tasks need to be performed.

regards,
Daan

FYI, I didn’t find a way to do this but worked around by creating a ad-hoc group with add_host.