Skip to content

Instantly share code, notes, and snippets.

@davidlhw
Created May 6, 2023 17:12
Show Gist options
  • Save davidlhw/0250e4482d327c67a7ae01ab20f36f96 to your computer and use it in GitHub Desktop.
Save davidlhw/0250e4482d327c67a7ae01ab20f36f96 to your computer and use it in GitHub Desktop.
---
- name: Ping remote server
hosts: remote-server # replace it with the server address that you have ssh credentials to
become: yes # optional to have this line
tasks:
- name: Ping the remote server
ping:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment