Copy ping-test for Sempohre
parent
a9cf9ce67a
commit
d2c11150c1
|
|
@ -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
|
||||||
Loading…
Reference in New Issue