--- - hosts: all tasks: - name: show IP address debug: msg: > This host uses IP address {{ ansible_facts['default_ipv4']['address'] }}