'What is difference between running the commands ansible and ansible-playbook

When looking at examples for how to define and run ansible scripts, some examples use 'ansible' command to execute the scripts and some examples use 'ansible-playbook' command. But I have been unable to find the difference between them or guidelines regarding which one to use when.

What are the differences between the two commands?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source