--- # Test playbook to verify Ansible control node setup # Usage: ansible-playbook playbooks/test-connection.yml - name: Test connection to all hosts hosts: all gather_facts: true tasks: - name: Ping all hosts ansible.builtin.ping: - name: Display host information ansible.builtin.debug: msg: "Connected to {{ inventory_hostname }} ({{ ansible_host }})"