commit e7aed210f702b2e6fb2203bd4c07f6cc30e65e11 Author: Semaphore Date: Sun Feb 15 19:59:05 2026 +0000 Initial commit - playbook ping 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 }}"