14 lines
317 B
YAML
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 |