@ -69,12 +69,6 @@ Use the ping module to ping all the nodes in your inventory:
$ ansible all -m ping
$ ansible all -m ping
Now run a live command on all of your nodes:
..code-block:: bash
$ ansible all -a "/bin/echo hello"
You should see output for each host in your inventory, similar to this:
You should see output for each host in your inventory, similar to this:
..code-block:: ansible-output
..code-block:: ansible-output
@ -87,6 +81,12 @@ You should see output for each host in your inventory, similar to this:
"ping": "pong"
"ping": "pong"
}
}
Now run a live command on all of your nodes:
..code-block:: bash
$ ansible all -a "/bin/echo hello"
Beyond the basics
Beyond the basics
-----------------
-----------------
By default Ansible uses SFTP to transfer files. If the machine or device you want to manage does not support SFTP, you can switch to SCP mode in :ref:`intro_configuration`. The files are placed in a temporary directory and executed from there.
By default Ansible uses SFTP to transfer files. If the machine or device you want to manage does not support SFTP, you can switch to SCP mode in :ref:`intro_configuration`. The files are placed in a temporary directory and executed from there.