From e7aed210f702b2e6fb2203bd4c07f6cc30e65e11 Mon Sep 17 00:00:00 2001 From: Semaphore Date: Sun, 15 Feb 2026 19:59:05 +0000 Subject: [PATCH] Initial commit - playbook ping --- ping.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ping.yml diff --git a/ping.yml b/ping.yml new file mode 100644 index 0000000..f474119 --- /dev/null +++ b/ping.yml @@ -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 }}"