Run ad hoc commands against a host in an inventory
Learn how to run ad hoc commands against hosts in an inventory.
About this task Copy linkLink copied!
Ad hoc refers to using Ansible to perform a quick command, using /usr/bin/ansible, rather than the orchestration language, which is /usr/bin/ansible-playbook. An example of an ad hoc command might be rebooting 50 machines in your infrastructure. Anything you can do ad hoc can be accomplished by writing a playbook. Playbooks can also glue many other operations together.
Procedure Copy linkLink copied!
Configure notifications for the source Copy linkLink copied!
After you create a source for an inventory in automation controller, you can configure notifications for that source.
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
When you define a source, it is displayed in the list of sources associated with the inventory. From the Sources tab you can perform a sync on a single source, or sync all of them at once. You can also perform additional actions such as scheduling a sync process, and edit or delete the source.
View completed jobs Copy linkLink copied!
You can view completed jobs in automation controller by navigating to the Jobs tab in the navigation panel.
If you use an inventory to run a job, you can view details about those jobs in the Jobs tab of the inventory and click Expanded to view details about each job.