playbook: Use Ansible fact for default IPv4
Combining when and register made it impossible to have "portable" way to find default (public) IPv4 with shell script. This is expected behaviour of ansible, see https://github.com/ansible/ansible/issues/12779 As Ansbile provides information about a host, use it (ansible_default_ipv4.address) to fetch this kind of address.
Showing
Please register or sign in to comment