From 324a56d325c72f876a62bd0835a43c28688a0112 Mon Sep 17 00:00:00 2001
From: poulpe <poulpe@localhost.localdomain>
Date: Sat, 8 Apr 2023 22:33:52 +0200
Subject: [PATCH] [Update] Fix ping command with ping in shell

---
 Config_Wireguard.yml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Config_Wireguard.yml b/Config_Wireguard.yml
index 7809c83..fb472d6 100644
--- a/Config_Wireguard.yml
+++ b/Config_Wireguard.yml
@@ -120,7 +120,7 @@
         state: restarted
         enabled: yes
 
-- name: Setup index.html on H2
+- name: Setup wireguard on H1
   hosts: H1
   become: true
   tasks:
@@ -141,8 +141,7 @@
   tasks:
 
     - name: Ping form H1 to H2
-      ansible.netcommon.net_ping:
-        dest: 10.0.0.1
+      ansible.builtin.shell: "ping 3.0.0.2 -c 1"
       register: result
       
     - name: Print result
-- 
GitLab