In case you are using serial: 1 facts of other hosts (like ansible_default_ipv4) may not be available. For more info see Access "other" hosts facts when running a playbook in serial
serial: 1
ansible_default_ipv4