© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
B. Choi, E. MedinaIntroduction to Ansible Network Automationhttps://doi.org/10.1007/978-1-4842-9624-0_7

7. Learning Ansible Basic Concepts II: Ad Hoc Commands – A Beginner’s Guide

Brendan Choi1   and Erwin Medina1
(1)
Sydney, NSW, Australia
 

This chapter will teach you how to work with Ansible ad hoc commands on multiple machines. Throughout the chapter, you will learn the necessary steps to set up a working directory for Ansible ad hoc commands and how to run the Ansible Ping ad hoc command. You will also learn how to specify a user and prompt for their password when running an ad hoc command. This chapter covers a range of ad hoc commands, including testing ...

Get Introduction to Ansible Network Automation: A Practical Primer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.