--- - name: Ping Linux hosts hosts: "{{ hosts_servers }}" tasks: - name: Ping Linux hosts using ping module ansible.builtin.ping: