Simple ping test

This commit is contained in:
Aritra Dalal
2026-04-20 15:23:46 +01:00
parent a068d08a83
commit c67d59b518

14
ping_test.yml Normal file
View File

@@ -0,0 +1,14 @@
---
- 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