Last active
February 26, 2021 19:40
-
-
Save mmasko/ec5bf846c24ce1dee283a11fcc8e3fbe to your computer and use it in GitHub Desktop.
port check on linux using raw shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
true &>/dev/null </dev/tcp/$HOSTNAMEorIP/$PORT && echo open || echo closed | |
ansible all -m win_ping -i $IP, --extra-vars "ansible_user=$username ansible_password=$password ansible_port=5986 ansible_connection=winrm ansible_winrm_server_cert_validation=ignore" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment