ansible/docsite/rst/index.rst

187 lines
8.4 KiB
ReStructuredText
Raw Normal View History

2013-09-29 18:12:31 +02:00
Ansible Documentation
=====================
About Ansible
`````````````
2013-09-29 18:12:31 +02:00
Welcome to the Ansible documentation!
2012-10-17 00:00:41 +02:00
Ansible is an IT automation tool. It can configure systems, deploy software, and orchestrate more advanced IT tasks
2013-10-05 20:22:43 +02:00
such as continuous deployments or zero downtime rolling updates.
2013-06-09 19:55:58 +02:00
2013-10-05 20:17:53 +02:00
Ansible's goals are foremost those of simplicity and maximum ease of use. It also has a strong focus on security and reliability, featuring a minimum of moving parts, usage of Open SSH for transport (with an accelerated socket mode and pull modes as alternatives), and a language that is designed around auditability by humans -- even those not familiar with the program.
2013-09-29 18:12:31 +02:00
2013-10-05 20:22:43 +02:00
We believe simplicity is relevant to all sizes of environments and design for busy users of all types -- whether this means developers, sysadmins, release engineers, IT managers, and everywhere in between. Ansible is appropriate for managing small setups with a handful of instances as well as enterprise environments with many thousands.
Ansible manages machines in an agentless manner. There is never a question of how to
upgrade remote daemons or the problem of not being able to manage systems because daemons are uninstalled. As OpenSSH is one of the most peer reviewed open source components, the security exposure of using the tool is greatly reduced. Ansible is decentralized -- it relies on your existing OS credentials to control access to remote machines; if needed it can easily connect with Kerberos, LDAP, and other centralized authentication management systems.
2013-03-19 19:46:30 +01:00
You may be interested in reading about `some notable Ansible users <http://www.ansibleworks.com/users/>`_.
2013-11-21 21:11:16 +01:00
This documentation covers the current released version of Ansible (1.4.X) and also some development version features (1.5). For recent features, in each section, the version of Ansible where the feature is added is indicated. AnsibleWorks releases a new major release of Ansible approximately every 2 months. The core application evolves somewhat conservatively, valuing simplicity in language design and setup, while the community around new modules and plugins being developed and contributed moves very very quickly, typically adding 20 or so new modules in each release.
2012-03-07 17:35:18 +01:00
2013-10-04 19:27:19 +02:00
.. _an_introduction:
The Basics
``````````
2013-09-29 18:12:31 +02:00
Before we dive into the really fun parts -- playbooks, configuration management, deployment, and orchestration, we'll learn how to get Ansible installed and some basic concepts. We'll go over how to execute ad-hoc commands in parallel across your nodes using /usr/bin/ansible. We'll also see what sort of modules are available in Ansible's core (though you can also write your own, which we'll also show later).
2012-03-07 17:35:18 +01:00
.. toctree::
:maxdepth: 1
2012-03-07 17:35:18 +01:00
2013-09-29 18:12:31 +02:00
intro_installation
2013-09-29 18:36:02 +02:00
intro_getting_started
2013-09-29 18:12:31 +02:00
intro_inventory
2013-09-30 01:16:59 +02:00
intro_dynamic_inventory
2013-09-29 18:12:31 +02:00
intro_patterns
intro_adhoc
2013-09-30 02:09:30 +02:00
intro_configuration
Modules
```````
Ansible modules are resources that are distributed to remote nodes to make them perform particular tasks or match a particular
state. Ansible follows a "batteries included" philosophy, so you have a lot of great modules for all manner of
IT tasks in the core distribution. This means modules are well up-to-date and you don't have to hunt for an implementation
that will work on your platform. You may think of the module library as a toolbox full of useful system management tools,
2013-10-06 03:19:19 +02:00
and playbooks as the instructions for building something using those tools.
2013-10-05 19:58:03 +02:00
.. toctree::
:maxdepth: 1
2013-10-05 20:57:45 +02:00
2012-03-07 17:35:18 +01:00
modules
2012-10-17 00:00:41 +02:00
2013-10-04 19:27:19 +02:00
.. _overview:
Architecture Diagram
````````````````````
2012-10-17 00:00:41 +02:00
2013-06-09 19:55:58 +02:00
.. image:: http://www.ansibleworks.com/wp-content/uploads/2013/06/ANSIBLE_DIAGRAM.jpg
:alt: ansible architecture diagram
2013-06-09 19:55:58 +02:00
:width: 788px
:height: 436px
2012-10-17 00:00:41 +02:00
2013-10-04 19:27:19 +02:00
.. _introduction_to_playbooks:
Playbooks
`````````
2013-03-19 19:46:30 +01:00
Playbooks are Ansible's configuration, deployment, and orchestration language. They can describe a policy you want your remote systems to enforce, or a set of steps in a general IT process.
2012-10-17 00:00:41 +02:00
If Ansible modules are the tools in your workshop, playbooks are your design plans.
2013-09-29 18:12:31 +02: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.
While there's a lot of information here, there's no need to learn everything at once. You can start small and pick up more features
2013-09-29 18:12:31 +02:00
over time as you need them.
Playbooks are designed to be human-readable and are developed in a basic text language. There are multiple
2012-10-17 00:00:41 +02:00
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.
It is recommended to 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.
2012-10-17 00:00:41 +02:00
.. toctree::
:maxdepth: 1
2012-03-07 17:35:18 +01:00
playbooks
2013-09-29 18:12:31 +02:00
playbooks_roles
playbooks_variables
playbooks_conditionals
2013-09-29 18:12:31 +02:00
playbooks_loops
playbooks_best_practices
2013-10-03 03:53:05 +02:00
2013-10-04 19:27:19 +02:00
.. _advanced_topics_in_playbooks:
Special Topics In Playbooks
```````````````````````````
2013-09-29 18:12:31 +02:00
Here are some playbook features that not everyone may need to learn, but can be quite useful for particular applications.
Browsing these topics is recommended as you may find some useful tips here, but feel free to learn the basics of Ansible first
and adopt these only if they seem relevant or useful to your environment.
2013-09-30 02:09:30 +02:00
.. toctree::
:maxdepth: 1
2013-09-29 18:12:31 +02:00
playbooks_acceleration
2013-09-30 02:09:30 +02:00
playbooks_async
playbooks_checkmode
2013-09-29 18:12:31 +02:00
playbooks_delegation
playbooks_environment
playbooks_error_handling
playbooks_lookups
playbooks_prompts
2013-09-30 02:09:30 +02:00
playbooks_tags
2013-10-04 19:27:19 +02:00
.. _ansibleworks_awx:
AnsibleWorks AWX
````````````````
`AnsibleWorks <http://ansibleworks.com>`_, who also sponsors the Ansible community, also produces 'AWX', which is a web-based solution that makes Ansible even more easy to use for IT teams of all kinds. It's designed to be the hub for all of your automation tasks.
2013-10-06 03:19:19 +02:00
AWX allows you to control access to who can access what, even allowing sharing of SSH credentials without someone being able to transfer those credentials. Inventory can be graphically managed or synced with a wide variety of cloud sources. It logs all of your jobs, integrates well with LDAP, and has an amazing browsable REST API. Command line tools are available for easy integration
with Jenkins as well.
Find out more about AWX features and how to download it on the `AWX webpage <http://ansibleworks.com/ansibleworks-awx>`_. AWX
is free for usage for up to 10 nodes, and comes bundled with amazing support from AnsibleWorks. As you would expect, AWX is
installed using Ansible playbooks!
2013-10-04 19:27:19 +02:00
.. _detailed_guides:
2013-09-29 18:12:31 +02:00
Detailed Guides
```````````````
2013-10-05 19:58:03 +02:00
This section is new and evolving. The idea here is explore particular use cases in greater depth and provide a more "top down" explanation of some basic features.
2013-05-29 16:25:54 +02:00
2013-05-29 20:17:32 +02:00
.. toctree::
:maxdepth: 1
2013-09-29 18:12:31 +02:00
guide_aws
guide_vagrant
2013-09-29 18:12:31 +02:00
Pending topics may include: Docker, Jenkins, Rackspace Cloud, Google Compute Engine, Linode/Digital Ocean, Continous Deployment, and more.
2013-09-29 18:12:31 +02:00
2013-10-04 19:27:19 +02:00
.. _community_information:
2013-09-29 18:12:31 +02:00
Community Information
`````````````````````
Ansible is an open source project designed to bring together developers and administrators of all kinds to collaborate on building
IT automation solutions that work well for them. Should you wish to get more involved -- whether in terms of just asking a question, helping other users, introducing new people to Ansible, or helping with the software or documentation, we welcome your contributions to the project.
2013-10-05 01:04:09 +02:00
`Ways to interact <https://github.com/ansible/ansible/blob/devel/CONTRIBUTING.md>`_
2013-05-29 16:25:54 +02:00
2013-10-04 19:27:19 +02:00
.. _developer_information:
2012-10-17 00:00:41 +02:00
Developer Information
`````````````````````
2013-10-06 03:19:19 +02:00
Learn how to build modules of your own in any language, and also how to extend Ansible through several kinds of plugins. Explore Ansible's Python API and write Python plugins to integrate with other solutions in your environment.
2012-10-17 00:00:41 +02:00
.. toctree::
:maxdepth: 1
2013-09-29 18:36:02 +02:00
developing_api
developing_inventory
developing_modules
developing_plugins
Developers will also likely be interested in the fully-discoverable `REST API <http://ansibleworks.com/ansibleworks-awx>`_ that is part of AnsibleWorks AWX. It's great for embedding Ansible in all manner of applications.
2012-08-03 06:01:23 +02:00
2013-10-04 19:27:19 +02:00
.. _misc:
2012-10-18 04:28:24 +02:00
Miscellaneous
`````````````
Some additional topics you may be interested in:
2012-10-18 04:28:24 +02:00
.. toctree::
:maxdepth: 1
2013-04-15 01:31:47 +02:00
faq
glossary
YAMLSyntax
2012-10-17 00:00:41 +02:00