Quantcast
Channel: How To – Paul K Leasure
Viewing all articles
Browse latest Browse all 39

Ansible: How to ping a server from the command line without an ansible playbook

$
0
0

Be sure ansible is installed on your local system.

In this example I will use an AWS ec2 instance (REHL5)

The ansible command line command is:

ansible all -i <IP or host>, -m ping --private-key="~/AWS_pems/my-pem.pem" -u <user name for host machine>

(note the comma)


Viewing all articles
Browse latest Browse all 39

Trending Articles