ansible/docs/docsite/rst/user_guide/playbooks.rst

22 lines
1.3 KiB
ReStructuredText
Raw Normal View History

.. _working_with_playbooks:
2020-07-02 17:11:09 +02:00
Working with playbooks
======================
2013-02-23 20:34:29 +01:00
Playbooks record and execute Ansible's configuration, deployment, and orchestration functions. They can describe a policy you want your remote systems to enforce, or a set of steps in a general IT process.
2013-10-05 00:41:14 +02:00
2016-08-17 11:20:13 +02:00
If Ansible modules are the tools in your workshop, playbooks are your instruction manuals, and your inventory of hosts are your raw material.
2012-03-09 13:42:53 +01:00
At a basic level, playbooks can be used to manage configurations of and deployments to remote machines. At a more advanced level, they can sequence multi-tier rollouts involving rolling updates, and can delegate actions to other hosts, interacting with monitoring servers and load balancers along the way.
2013-10-03 03:56:55 +02:00
Playbooks are designed to be human-readable and are developed in a basic text language. There are multiple ways to organize playbooks and the files they include, and we'll offer up some suggestions on that and making the most out of Ansible.
You should look at `Example Playbooks <https://github.com/ansible/ansible-examples>`_ while reading along with the playbook documentation. These illustrate best practices as well as how to put many of the various concepts together.
.. toctree::
:maxdepth: 2
2012-03-09 13:42:53 +01:00
playbooks_templating
playbooks_special_topics
guide_rolling_upgrade