Initial commit - playbook ping

This commit is contained in:
Semaphore
2026-02-15 19:59:05 +00:00
commit e7aed210f7

15
ping.yml Normal file
View File

@@ -0,0 +1,15 @@
---
- name: Test de connexion
hosts: all
gather_facts: no
tasks:
- name: Ping all hosts
ansible.builtin.ping:
- name: Afficher le hostname
ansible.builtin.command: hostname
register: hostname_output
- name: Montrer le résultat
ansible.builtin.debug:
msg: "Machine: {{ hostname_output.stdout }}"