Files
ansible-config/ping_test.yml
2026-04-20 15:23:46 +01:00

14 lines
317 B
YAML

---
- name: Network Ping Test
hosts: all
gather_facts: false
tasks:
- name: Ping the target 10 times
ansible.builtin.command: "ping -c 10 8.8.8.8"
register: ping_output
ignore_errors: true
- name: Report the response
ansible.builtin.debug:
var: ping_output.stdout_lines