From d2c11150c18797d597134e1d91d8a1484b4c2f02 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 8 May 2024 14:12:29 +0200 Subject: [PATCH] Copy ping-test for Sempohre --- ping-test.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ping-test.yaml diff --git a/ping-test.yaml b/ping-test.yaml new file mode 100644 index 0000000..3a99265 --- /dev/null +++ b/ping-test.yaml @@ -0,0 +1,25 @@ + + +- name: Ping to Host "{{ inventory_hostname }}" + hosts: all + gather_facts: false + tasks: + + - name: Ping Test an "{{ inventory_hostname }}" + ansible.windows.win_ping: + register: ping_test + + - name: Debug + ansible.builtin.debug: + var: ping_test + + + - name: Run basic PowerShell script + ansible.windows.win_powershell: + script: | + ls + register: hello + + - name: Debug hello + ansible.builtin.debug: + var: hello \ No newline at end of file