--- - hosts: all tasks: - name: show IP address debug: msg: > This host uses IP address {{ ansible_default_ipv4.address }}