# Archivo /etc/hosts generado por Ansible # Contenido actual del archivo /etc/hosts {{ current_hosts_content }} # Información de todos los hosts del inventario {% for host in groups['all'] %} {{ hostvars[host]['ansible_host'] }} {{ host }} {{ hostvars[host]['ansible_fqdn'] | default('') }} {% endfor %}