Stop using the IP given by the DHCP server as a static IP
# hostname {{ inventory_hostname }} not found in staticips
# configured based on ip from dhcp during ansible run
{# FIXME: This is hacky, just taking what we got from DHCP and making it static #}
auto {{ ansible_default_ipv4.interface }}
iface {{ ansible_default_ipv4.interface }} inet static
address {{ ansible_default_ipv4.address }}
Using the IP handed out by DHCP as a static IP seems really bad.
for the case of not found in staticips, how about:
iface {{ ansible_default_ipv4.interface }} inet dhcp