Move all html content on the website to build top level such that we do not need the redirect.
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 392 B |
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 199 B |
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 199 B |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
@ -1,4 +0,0 @@
|
|||||||
# Sphinx build info version 1
|
|
||||||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
|
||||||
config:
|
|
||||||
tags:
|
|
@ -1,83 +0,0 @@
|
|||||||
YAML Format
|
|
||||||
===========
|
|
||||||
|
|
||||||
This page provides a basic overview of correct YAML syntax, which is how Ansible
|
|
||||||
playbooks (our configuration management language) are expressed.
|
|
||||||
You may also wish to read playbook examples and will quickly pick this up from those.
|
|
||||||
|
|
||||||
YAML Basics
|
|
||||||
-----------
|
|
||||||
|
|
||||||
For `ansible`, every YAML file must be a list at it's root-most
|
|
||||||
element. Each item in the list is a dictionary. These dictionaries
|
|
||||||
represent all the options you can use to write an `ansible` file. In
|
|
||||||
addition, all YAML files (regardless of their association with
|
|
||||||
`ansible` or not) should start with ``---``.
|
|
||||||
|
|
||||||
In YAML a list can be represented in two ways. In one way all members
|
|
||||||
of a list are lines beginning at the same indenta`tion level starting
|
|
||||||
with a ``-`` character::
|
|
||||||
|
|
||||||
---
|
|
||||||
# A list of tasty fruits
|
|
||||||
- Apple
|
|
||||||
- Orange
|
|
||||||
- Strawberry
|
|
||||||
- Mango
|
|
||||||
|
|
||||||
In the second way a list is represented as comma separated elements
|
|
||||||
surrounded by square brackets. Newlines are permitted between
|
|
||||||
elements::
|
|
||||||
|
|
||||||
---
|
|
||||||
# A list of tasty fruits
|
|
||||||
[apple, orange, banana, mango]
|
|
||||||
|
|
||||||
A dictionary is represented in a simple ``key:`` and ``value`` form::
|
|
||||||
|
|
||||||
---
|
|
||||||
# An employee record
|
|
||||||
name: John Eckersberg
|
|
||||||
job: Developer
|
|
||||||
skill: Elite
|
|
||||||
|
|
||||||
Like lists, dictionaries can be represented in an abbreviated form::
|
|
||||||
|
|
||||||
---
|
|
||||||
# An employee record
|
|
||||||
{name: John Eckersberg, job: Developer, skill: Elite}
|
|
||||||
|
|
||||||
.. _truthiness:
|
|
||||||
|
|
||||||
You can specify a boolean value (true/false) in several forms::
|
|
||||||
|
|
||||||
---
|
|
||||||
knows_oop: True
|
|
||||||
likes_emacs: TRUE
|
|
||||||
uses_cvs: false
|
|
||||||
|
|
||||||
Finally, you can combine these data structures::
|
|
||||||
|
|
||||||
---
|
|
||||||
# An employee record
|
|
||||||
name: John Eckersberg
|
|
||||||
job: Developer
|
|
||||||
skill: Elite
|
|
||||||
employed: True
|
|
||||||
foods:
|
|
||||||
- Apple
|
|
||||||
- Orange
|
|
||||||
- Strawberry
|
|
||||||
- Mango
|
|
||||||
languages:
|
|
||||||
ruby: Elite
|
|
||||||
python: Elite
|
|
||||||
dotnet: Lame
|
|
||||||
|
|
||||||
That's all you really need to know about YAML to get started writing
|
|
||||||
`Ansible` playbooks.
|
|
||||||
|
|
||||||
.. seealso::
|
|
||||||
|
|
||||||
`YAMLLint <http://yamllint.com/>`_
|
|
||||||
YAML Lint gets the lint out of your YAML
|
|
@ -1,73 +0,0 @@
|
|||||||
Using the Python API
|
|
||||||
====================
|
|
||||||
|
|
||||||
The Python API is very powerful, and is how the ansible CLI and ansible-playbook
|
|
||||||
are implemented.
|
|
||||||
|
|
||||||
It's pretty simple::
|
|
||||||
|
|
||||||
import ansible.runner
|
|
||||||
|
|
||||||
runner = ansible.runner.Runner(
|
|
||||||
module_name='ping',
|
|
||||||
module_args='',
|
|
||||||
pattern='web*',
|
|
||||||
forks=10
|
|
||||||
)
|
|
||||||
datastructure = runner.run()
|
|
||||||
|
|
||||||
The run method returns results per host, grouped by whether they
|
|
||||||
could be contacted or not. Return types are module specific, as
|
|
||||||
expressed in the 'ansible-modules' documentation.::
|
|
||||||
|
|
||||||
{
|
|
||||||
"dark" : {
|
|
||||||
"web1.example.com" : "failure message"
|
|
||||||
}
|
|
||||||
"contacted" : {
|
|
||||||
"web2.example.com" : 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
A module can return any type of JSON data it wants, so Ansible can
|
|
||||||
be used as a framework to rapidly build powerful applications and scripts.
|
|
||||||
|
|
||||||
Detailed API Example
|
|
||||||
````````````````````
|
|
||||||
|
|
||||||
The following script prints out the uptime information for all hosts::
|
|
||||||
|
|
||||||
#!/usr/bin/python
|
|
||||||
|
|
||||||
import ansible.runner
|
|
||||||
import sys
|
|
||||||
|
|
||||||
# construct the ansible runner and execute on all hosts
|
|
||||||
results = ansible.runner.Runner(
|
|
||||||
pattern='*', forks=10,
|
|
||||||
module_name='command', module_args=['/usr/bin/uptime'],
|
|
||||||
).run()
|
|
||||||
|
|
||||||
if results is None:
|
|
||||||
print "No hosts found"
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
print "UP ***********"
|
|
||||||
for (hostname, result) in results['contacted'].items():
|
|
||||||
if not 'failed' in result:
|
|
||||||
print "%s >>> %s" % (hostname, result['stdout'])
|
|
||||||
|
|
||||||
print "FAILED *******"
|
|
||||||
for (hostname, result) in results['contacted'].items():
|
|
||||||
if 'failed' in result:
|
|
||||||
print "%s >>> %s" % (hostname, result['msg'])
|
|
||||||
|
|
||||||
print "DOWN *********"
|
|
||||||
for (hostname, result) in results['dark'].items():
|
|
||||||
print "%s >>> %s" % (hostname, result)
|
|
||||||
|
|
||||||
Advanced programmers may also wish to read the source to ansible itself, for
|
|
||||||
it uses the Runner() API (with all available options) to implement the
|
|
||||||
command line tools ``ansible`` and ``ansible-playbook``.
|
|
||||||
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
|||||||
Communicate and Get Involved
|
|
||||||
===========================
|
|
||||||
|
|
||||||
* Join the `ansible-project mailing list <http://groups.google.com/group/ansible-project>`_ on Google Groups
|
|
||||||
* Join `#ansible <irc://irc.freenode.net/#ansible>`_ on the `freenode IRC network <http://freenode.net/>`_
|
|
||||||
* Visit the `project page <https://github.com/ansible/ansible>`_ on Github
|
|
||||||
|
|
||||||
- View the `issue tracker <https://github.com/ansible/ansible/issues>`_
|
|
||||||
|
|
@ -1,81 +0,0 @@
|
|||||||
Command Line Examples
|
|
||||||
=====================
|
|
||||||
|
|
||||||
The following examples show how to use `/usr/bin/ansible` for running ad-hoc tasks.
|
|
||||||
Start here. For configuration management and deployments, you'll want to pick up on
|
|
||||||
using `/usr/bin/ansible-playbook` -- the concepts port over directly.
|
|
||||||
|
|
||||||
.. seealso::
|
|
||||||
|
|
||||||
:doc:`modules`
|
|
||||||
A list of available modules
|
|
||||||
:doc:`playbooks`
|
|
||||||
Alternative ways to use ansible
|
|
||||||
|
|
||||||
|
|
||||||
Parallelism and Shell Commands
|
|
||||||
``````````````````````````````
|
|
||||||
|
|
||||||
Let's use ansible's command line tool to reboot all web servers in Atlanta, 10 at a time::
|
|
||||||
|
|
||||||
ssh-agent bash
|
|
||||||
ssh-add ~/.ssh/id_rsa.pub
|
|
||||||
|
|
||||||
ansible atlanta -a "/sbin/reboot" -f 10
|
|
||||||
|
|
||||||
The -f 10 specifies the usage of 10 simultaneous processes.
|
|
||||||
|
|
||||||
Note that other than the command module, ansible modules do not work like simple scripts. They make the remote system look like you state, and run the commands neccessary to get it there. This is commonly refered to
|
|
||||||
as 'idempotency'.
|
|
||||||
|
|
||||||
File Transfer & Templating
|
|
||||||
``````````````````````````
|
|
||||||
|
|
||||||
Ansible can SCP lots of files to multiple machines in parallel, and optionally use them as template sources.
|
|
||||||
|
|
||||||
To just transfer a file directly to many different servers::
|
|
||||||
|
|
||||||
ansible atlanta copy -a "/etc/hosts /tmp/hosts"
|
|
||||||
|
|
||||||
To use templating, first run the setup module to put the template variables you would like to use on the remote host. Then use the template module to write the files using the templates. Templates are written in Jinja2 format. Playbooks (covered elsewhere in the documentation) will run the setup module for you, making this even simpler.::
|
|
||||||
|
|
||||||
ansible webservers -m setup -a "favcolor=red ntp_server=192.168.1.1"
|
|
||||||
ansible webservers -m template -a "src=/srv/motd.j2 dest=/etc/motd"
|
|
||||||
ansible webservers -m template -a "src=/srv/ntp.j2 dest=/etc/ntp.conf"
|
|
||||||
|
|
||||||
Need something like the fqdn in a template? If facter or ohai are installed, data from these projects will also be made available to the template engine, using 'facter' and 'ohai' prefixes for each.
|
|
||||||
|
|
||||||
Deploying From Source Control
|
|
||||||
`````````````````````````````
|
|
||||||
|
|
||||||
Deploy your webapp straight from git::
|
|
||||||
|
|
||||||
ansible webservers -m git -a "repo=git://foo dest=/srv/myapp version=HEAD"
|
|
||||||
|
|
||||||
Since ansible modules can notify change handlers (see 'Playbooks') it is possible to tell ansible to run specific tasks when the code is updated, such as deploying Perl/Python/PHP/Ruby directly from git and then restarting apache.
|
|
||||||
|
|
||||||
Managing Services
|
|
||||||
`````````````````
|
|
||||||
|
|
||||||
Ensure a service is started on all webservers::
|
|
||||||
|
|
||||||
ansible webservers -m service name=httpd state=started
|
|
||||||
|
|
||||||
Alternatively, restart a service on all webservers::
|
|
||||||
|
|
||||||
ansible webservers -m service name=httpd state=restarted
|
|
||||||
|
|
||||||
Time Limited Background Operations
|
|
||||||
``````````````````````````````````
|
|
||||||
|
|
||||||
Long running operations can be backgrounded, and their status can be checked on later. The same job ID is given to the same task on all hosts, so you won't lose track. Polling support is pending in the command line.::
|
|
||||||
|
|
||||||
ansible all -B 3600 -a "/usr/bin/long_running_operation --do-stuff"
|
|
||||||
ansible all -n job_status -a jid=123456789
|
|
||||||
|
|
||||||
Any module other than 'copy' or 'template' can be backgrounded. Typically you'll be backgrounding shell
|
|
||||||
commands or software upgrades only.
|
|
||||||
|
|
||||||
After the time limit (in seconds) runs out (-B), the process on the remote nodes will be killed.
|
|
||||||
|
|
||||||
|
|
@ -1,104 +0,0 @@
|
|||||||
Getting Started
|
|
||||||
===============
|
|
||||||
|
|
||||||
How to download ansible and get started using it
|
|
||||||
|
|
||||||
.. seealso::
|
|
||||||
|
|
||||||
:doc:`examples`
|
|
||||||
Examples of basic commands
|
|
||||||
:doc:`playbooks`
|
|
||||||
Learning ansible's configuration management language
|
|
||||||
|
|
||||||
Requirements
|
|
||||||
````````````
|
|
||||||
|
|
||||||
Requirements for Ansible are extremely minimal.
|
|
||||||
|
|
||||||
If you are running python 2.6 on the **overlord** machine (the machine that you'll be talking to the other machines from), you will need:
|
|
||||||
|
|
||||||
* ``paramiko``
|
|
||||||
* ``PyYAML``
|
|
||||||
* ``python-jinja2`` (for playbooks)
|
|
||||||
|
|
||||||
If you are running less than Python 2.6, you will also need:
|
|
||||||
|
|
||||||
* The Python 2.4 or 2.5 backport of the ``multiprocessing`` module
|
|
||||||
|
|
||||||
- `Installation and Testing Instructions <http://code.google.com/p/python-multiprocessing/wiki/Install>`_
|
|
||||||
|
|
||||||
* ``simplejson``
|
|
||||||
|
|
||||||
On the managed nodes, to use templating, you will need:
|
|
||||||
|
|
||||||
* ``python-jinja2`` (you can install this with ansible)
|
|
||||||
|
|
||||||
Developer Requirements
|
|
||||||
``````````````````````
|
|
||||||
|
|
||||||
For developers, you may wish to have:
|
|
||||||
|
|
||||||
* ``asciidoc`` (for building manpage documentation)
|
|
||||||
* ``python-sphinx`` (for building content for the ansible.github.com project only)
|
|
||||||
|
|
||||||
|
|
||||||
Getting Ansible
|
|
||||||
```````````````
|
|
||||||
|
|
||||||
Tagged releases are available as tar.gz files from the Ansible github
|
|
||||||
project page:
|
|
||||||
|
|
||||||
* `Ansible/downloads <https://github.com/ansible/ansible/downloads>`_
|
|
||||||
|
|
||||||
You can also clone the git repository yourself and install Ansible in
|
|
||||||
one of two ways:
|
|
||||||
|
|
||||||
|
|
||||||
Python Distutils
|
|
||||||
++++++++++++++++
|
|
||||||
|
|
||||||
You can also install Ansible using Python Distutils::
|
|
||||||
|
|
||||||
$ git clone git://github.com/ansible/ansible.git
|
|
||||||
$ cd ./ansible
|
|
||||||
$ sudo make install
|
|
||||||
|
|
||||||
Via RPM
|
|
||||||
+++++++
|
|
||||||
|
|
||||||
In the near future, pre-built RPMs will be available through your distribution. Until that time you
|
|
||||||
can use the ``make rpm`` command::
|
|
||||||
|
|
||||||
$ git clone git://github.com/ansible/ansible.git
|
|
||||||
$ cd ./ansible
|
|
||||||
$ make rpm
|
|
||||||
$ sudo rpm -Uvh ~/rpmbuild/RPMS/noarch/ansible-1.0-1.noarch.rpm
|
|
||||||
|
|
||||||
Your first commands
|
|
||||||
```````````````````
|
|
||||||
|
|
||||||
Edit /etc/ansible/hosts and put one or more remote systems in it, for which you have your SSH
|
|
||||||
key in ``authorized_keys``::
|
|
||||||
|
|
||||||
192.168.1.50
|
|
||||||
aserver.example.org
|
|
||||||
bserver.example.org
|
|
||||||
|
|
||||||
Set up SSH agent to avoid retyping passwords::
|
|
||||||
|
|
||||||
ssh-agent bash
|
|
||||||
ssh-add ~/.ssh/id_rsa
|
|
||||||
|
|
||||||
Now ping all your nodes::
|
|
||||||
|
|
||||||
ansible all -m ping
|
|
||||||
|
|
||||||
Now run a live command on all of your nodes::
|
|
||||||
|
|
||||||
ansible all /bin/echo hello
|
|
||||||
|
|
||||||
Congratulations. You've just contacted your nodes with Ansible. It's now time to read some
|
|
||||||
of the more real-world examples, and explore what you can do with different modules, as well
|
|
||||||
as the Ansible playbooks language. Ansible is not just about running commands, but you already
|
|
||||||
have a working infrastructure!
|
|
||||||
|
|
@ -1,77 +0,0 @@
|
|||||||
.. Director documentation master file, created by sphinx-quickstart on Sat Sep 27 13:23:22 2008.
|
|
||||||
You can adapt this file completely to your liking, but it should at least
|
|
||||||
contain the root `toctree` directive.
|
|
||||||
|
|
||||||
Ansible
|
|
||||||
=======
|
|
||||||
|
|
||||||
Ansible is a radically simple deployment, configuration, and command execution framework.
|
|
||||||
Other tools in this space have been too complicated for too long, require too much bootstrapping,
|
|
||||||
and have too much learning curve. Ansible is dead simple and painless to extend. For comparison, Puppet and Chef have about 60k lines of code. Ansible's core is a little over 1000 lines.
|
|
||||||
|
|
||||||
Ansible isn't just for configuration -- it's also great for Ad-Hoc tasks,
|
|
||||||
quickly firing off commands against nodes. Where Ansible excels though, is expressing complex multi-node deployment processes, executing complex sequences of commands on different hosts through "playbooks".
|
|
||||||
|
|
||||||
Extending ansible does not require programming in any particular language -- you can write modules
|
|
||||||
as scripts or programs that return simple JSON. It's also trivially easy to just execute
|
|
||||||
useful shell commands.
|
|
||||||
|
|
||||||
Why use Ansible versus something else? (Puppet, Chef, Fabric, Capistrano,
|
|
||||||
mCollective, Func, SaltStack, etc?) Ansible will have far less code, it
|
|
||||||
will be (by extension) more correct, and it will be the easiest thing to hack on and
|
|
||||||
use you'll ever see -- regardless of your favorite language of choice.
|
|
||||||
|
|
||||||
Systems management doesn't have to be complicated. Ansible's docs will remain
|
|
||||||
short & simple, and the source will be blindingly obvious.
|
|
||||||
|
|
||||||
|
|
||||||
Design Goals
|
|
||||||
````````````
|
|
||||||
|
|
||||||
* Dead simple setup
|
|
||||||
* Super fast & parallel by default
|
|
||||||
* No server or client daemons; use existing SSHd out of the box
|
|
||||||
* No additional software required on client boxes
|
|
||||||
* Modules can be written in ANY language
|
|
||||||
* Awesome API for creating very powerful distributed scripts
|
|
||||||
* Be very usable as non-root
|
|
||||||
* Create the easiest config management system to use, ever.
|
|
||||||
|
|
||||||
Communicate and Get Involved
|
|
||||||
````````````````````````````
|
|
||||||
|
|
||||||
Your ideas and contributions are welcome. We're also happy to help you with questions about Ansible.
|
|
||||||
|
|
||||||
* Join the `ansible-project mailing list <http://groups.google.com/group/ansible-project>`_ on Google Groups
|
|
||||||
* Join `#ansible <irc://irc.freenode.net/#ansible>`_ on the `freenode IRC network <http://freenode.net/>`_
|
|
||||||
* Visit the `project page <https://github.com/ansible/ansible>`_ on Github
|
|
||||||
|
|
||||||
- View the `issue tracker <https://github.com/ansible/ansible/issues>`_
|
|
||||||
|
|
||||||
|
|
||||||
Contents
|
|
||||||
========
|
|
||||||
|
|
||||||
.. toctree::
|
|
||||||
:maxdepth: 3
|
|
||||||
|
|
||||||
gettingstarted
|
|
||||||
patterns
|
|
||||||
examples
|
|
||||||
modules
|
|
||||||
YAMLScripts
|
|
||||||
playbooks
|
|
||||||
api
|
|
||||||
man
|
|
||||||
|
|
||||||
About the Author
|
|
||||||
````````````````
|
|
||||||
|
|
||||||
Ansible was originally developed by Michael DeHaan, a Raleigh, NC based software developer and architect.
|
|
||||||
He created other popular DevOps programs such as Cobbler, the popular Linux install server.
|
|
||||||
Cobbler is used to deploy mission critical systems all over the planet, in industries
|
|
||||||
ranging from massively multiplayer gaming, core internet infrastructure, finance,
|
|
||||||
chip design, and more. Michael also helped co-author of Func, a precursor to Ansible, which is used
|
|
||||||
to orchestrate systems in lots of diverse places. He's worked on systems software for
|
|
||||||
IBM, Motorola, Red Hat's Emerging Technologies Group, Puppet Labs, and rPath.
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
|||||||
.. _man:
|
|
||||||
|
|
||||||
Man Pages
|
|
||||||
=========
|
|
||||||
|
|
||||||
Ansible's manpage lists available command line options.
|
|
||||||
|
|
||||||
ansible(1)
|
|
||||||
----------
|
|
||||||
|
|
||||||
* `View ansible.1 <man/ansible.1.html>`_
|
|
||||||
|
|
@ -1,199 +0,0 @@
|
|||||||
Ansible Modules
|
|
||||||
===============
|
|
||||||
|
|
||||||
Ansible ships with a number of modules that can be executed directly on remote hosts or through
|
|
||||||
ansible playbooks.
|
|
||||||
|
|
||||||
.. seealso::
|
|
||||||
|
|
||||||
:doc:`examples`
|
|
||||||
Examples of using modules in /usr/bin/ansible
|
|
||||||
:doc:`playbooks`
|
|
||||||
Examples of using modules with /usr/bin/ansible-playbook
|
|
||||||
:doc:`api`
|
|
||||||
Examples of using modules with the Python API
|
|
||||||
|
|
||||||
Nearly all modules take key=value parameters. Some modules take no parameters, and the command
|
|
||||||
module just takes arguments for the command you want to run.
|
|
||||||
|
|
||||||
All modules return JSON format data, thoug if you are using the command line or playbooks, you
|
|
||||||
don't really need to know much about that.
|
|
||||||
|
|
||||||
Most modules other than command are idempotent, meaning they will seek to avoid changes
|
|
||||||
unless a change needs to be made. When using ansible playbooks, these modules can
|
|
||||||
trigger change events. Unless otherwise noted, all modules support change hooks.
|
|
||||||
|
|
||||||
Stock modules:
|
|
||||||
|
|
||||||
command
|
|
||||||
```````
|
|
||||||
|
|
||||||
The command module takes the command name followed by a list of arguments, space delimited.
|
|
||||||
This is the only module that does not use key=value style parameters.
|
|
||||||
|
|
||||||
Example usage::
|
|
||||||
|
|
||||||
/sbin/shutdown -t now
|
|
||||||
|
|
||||||
The given shell command will be executed on all selected nodes.
|
|
||||||
|
|
||||||
This module does not support change hooks and returns the return code from the program as well as timing information about how long the command was running for.
|
|
||||||
|
|
||||||
|
|
||||||
copy
|
|
||||||
````
|
|
||||||
|
|
||||||
The copy module moves a file on the local box to remote locations.
|
|
||||||
|
|
||||||
*src*::
|
|
||||||
|
|
||||||
Local path to a file to copy to the remote server. This can be an absolute or relative path.
|
|
||||||
|
|
||||||
|
|
||||||
*dest*::
|
|
||||||
|
|
||||||
Remote absolute path where the file should end up.
|
|
||||||
|
|
||||||
|
|
||||||
This module also returns md5sum information about the resultant file.
|
|
||||||
|
|
||||||
|
|
||||||
facter
|
|
||||||
``````
|
|
||||||
|
|
||||||
Runs the discovery program 'facter' on the remote system, returning
|
|
||||||
JSON data that can be useful for inventory purposes.
|
|
||||||
|
|
||||||
Requires that 'facter' and 'ruby-json' be installed on the remote end.
|
|
||||||
|
|
||||||
This module is informative only - it takes no parameters & does not support change hooks,
|
|
||||||
nor does it make any changes on the system. Playbooks do not actually use
|
|
||||||
this module, they use the 'setup' module behind the scenes.
|
|
||||||
|
|
||||||
|
|
||||||
git
|
|
||||||
```
|
|
||||||
|
|
||||||
Deploys software (or files) from git checkouts.
|
|
||||||
|
|
||||||
*repo*::
|
|
||||||
|
|
||||||
git or http protocol address of the repo to checkout
|
|
||||||
|
|
||||||
*dest*::
|
|
||||||
|
|
||||||
where to check it out, an absolute directory path
|
|
||||||
|
|
||||||
*version*::
|
|
||||||
|
|
||||||
what version to check out -- either the git SHA, the literal string 'HEAD', or a tag name
|
|
||||||
|
|
||||||
|
|
||||||
ohai
|
|
||||||
````
|
|
||||||
|
|
||||||
Similar to the facter module, this returns JSON inventory data. Ohai
|
|
||||||
data is a bit more verbose and nested than facter.
|
|
||||||
|
|
||||||
Requires that 'ohai' be installed on the remote end.
|
|
||||||
|
|
||||||
This module is information only - it takes no parameters & does not
|
|
||||||
support change hooks, nor does it make any changes on the system.
|
|
||||||
|
|
||||||
Playbooks should not call the ohai module, playbooks call the 'setup'
|
|
||||||
module behind the scenes instead.
|
|
||||||
|
|
||||||
ping
|
|
||||||
````
|
|
||||||
|
|
||||||
A trivial test module, this module always returns the integer '1' on
|
|
||||||
successful contact.
|
|
||||||
|
|
||||||
This module does not support change hooks and is informative only - it takes no parameters & does not
|
|
||||||
support change hooks, nor does it make any changes on the system.
|
|
||||||
|
|
||||||
|
|
||||||
service
|
|
||||||
```````
|
|
||||||
|
|
||||||
Controls services on remote machines.
|
|
||||||
|
|
||||||
*state*
|
|
||||||
|
|
||||||
Values are 'started', 'stopped', or 'restarted'. Started/stopped
|
|
||||||
are idempotent actions that will not run commands unless neccessary.
|
|
||||||
'restarted' will always bounce the service
|
|
||||||
|
|
||||||
|
|
||||||
*name*
|
|
||||||
|
|
||||||
The name of the service
|
|
||||||
|
|
||||||
|
|
||||||
setup
|
|
||||||
`````
|
|
||||||
|
|
||||||
Writes a JSON file containing key/value data, for use in templating.
|
|
||||||
Call this once before using the template modules. Playbooks will
|
|
||||||
execute this module automatically as the first step in each play using
|
|
||||||
the variables section, so it is unneccessary to make explicit calls to
|
|
||||||
setup within a playbook.
|
|
||||||
|
|
||||||
If facter or ohai are installed, variables from these programs will also
|
|
||||||
be snapshotted into the JSON file for usage in templating. These variables
|
|
||||||
are prefixed with 'facter_' and 'ohai_" so it's easy to tell their source.
|
|
||||||
All variables are then bubbled up to the caller.
|
|
||||||
|
|
||||||
*anything*
|
|
||||||
|
|
||||||
any other parameters can be named basically anything, and set a key=value
|
|
||||||
pair in the JSON file for use in templating.
|
|
||||||
|
|
||||||
|
|
||||||
template
|
|
||||||
````````
|
|
||||||
|
|
||||||
Templates a file out to a remote server. Call the setup module prior to usage.
|
|
||||||
|
|
||||||
*src*
|
|
||||||
|
|
||||||
path of a Jinja2 formatted template on the local server. This can be a relative
|
|
||||||
or absolute path.
|
|
||||||
|
|
||||||
*dest*
|
|
||||||
|
|
||||||
location to render the template on the remote server
|
|
||||||
|
|
||||||
|
|
||||||
This module also returns md5sum information about the resultant file.
|
|
||||||
|
|
||||||
|
|
||||||
Writing your own modules
|
|
||||||
````````````````````````
|
|
||||||
|
|
||||||
To write your own modules, simply follow the convention of those already available in
|
|
||||||
/usr/share/ansible. Modules must return JSON but can be written in any language.
|
|
||||||
Modules should return hashes, but hashes can be nested.
|
|
||||||
|
|
||||||
To support change hooks, modules should return hashes with a changed: True/False
|
|
||||||
element at the top level::
|
|
||||||
|
|
||||||
{
|
|
||||||
'changed' : True,
|
|
||||||
'something' : 42
|
|
||||||
}
|
|
||||||
|
|
||||||
Modules can also choose to indicate a failure scenario by returning a top level 'failure'
|
|
||||||
element with a True value, and a 'msg' element describing the nature of the failure.
|
|
||||||
Other return values are up to the module.
|
|
||||||
|
|
||||||
{
|
|
||||||
'failure' : True,
|
|
||||||
'msg' : "here is what happened..."
|
|
||||||
}
|
|
||||||
|
|
||||||
When shipping modules, drop them in /usr/share/ansible, or specify the module path to the
|
|
||||||
command line tool or API. It is easy to test modules by running them directly on
|
|
||||||
the command line, passing them arguments just like they would be passed with ansible.
|
|
||||||
|
|
||||||
|
|
@ -1,66 +0,0 @@
|
|||||||
.. _patterns:
|
|
||||||
|
|
||||||
The Inventory File, Patterns, and Groups
|
|
||||||
========================================
|
|
||||||
|
|
||||||
How to select hosts you wish to manage
|
|
||||||
|
|
||||||
.. seealso::
|
|
||||||
|
|
||||||
:doc:`examples`
|
|
||||||
Examples of basic commands
|
|
||||||
:doc:`playbooks`
|
|
||||||
Learning ansible's configuration management language
|
|
||||||
|
|
||||||
Inventory File Format
|
|
||||||
+++++++++++++++++++++
|
|
||||||
|
|
||||||
Ansible works against multiple systems in your infrastructure at the
|
|
||||||
same time. It does this by selecting portions of systems listed in Ansible's inventory file,
|
|
||||||
which defaults to /etc/ansible/hosts, and looks like this::
|
|
||||||
|
|
||||||
mail.example.com
|
|
||||||
|
|
||||||
[webservers]
|
|
||||||
foo.example.com
|
|
||||||
bar.example.com
|
|
||||||
|
|
||||||
[dbservers]
|
|
||||||
one.example.com
|
|
||||||
two.example.com
|
|
||||||
three.example.com
|
|
||||||
|
|
||||||
|
|
||||||
Selecting Targets
|
|
||||||
+++++++++++++++++
|
|
||||||
|
|
||||||
These patterns target all hosts in the inventory file::
|
|
||||||
|
|
||||||
all
|
|
||||||
*
|
|
||||||
|
|
||||||
It is also possible to address specific hosts::
|
|
||||||
|
|
||||||
one.example.com
|
|
||||||
one.example.com:two.example.com
|
|
||||||
|
|
||||||
|
|
||||||
The following patterns address one or more groups, which are denoted
|
|
||||||
with the bracket headers in the inventory file::
|
|
||||||
|
|
||||||
webservers
|
|
||||||
webservers:dbservers
|
|
||||||
|
|
||||||
Individual hosts, but not groups, can also be referenced using
|
|
||||||
wildcards::
|
|
||||||
|
|
||||||
*.example.com
|
|
||||||
*.com
|
|
||||||
|
|
||||||
It's also ok to mix wildcard patterns and groups at the same time::
|
|
||||||
|
|
||||||
one*.com:dbservers
|
|
||||||
|
|
||||||
NOTE: It is not possible to target a host not in the inventory file.
|
|
||||||
|
|
||||||
|
|
@ -1,230 +0,0 @@
|
|||||||
Playbooks
|
|
||||||
=========
|
|
||||||
|
|
||||||
.. seealso::
|
|
||||||
|
|
||||||
:doc:`YAMLScripts`
|
|
||||||
Learn about YAML syntax
|
|
||||||
:doc:`modules`
|
|
||||||
Learn about available modules and writing your own
|
|
||||||
:doc:`patterns`
|
|
||||||
Learn about how to select hosts
|
|
||||||
|
|
||||||
|
|
||||||
Playbooks are a completely different way to use ansible and are
|
|
||||||
particularly awesome.
|
|
||||||
|
|
||||||
They are the basis for a really simple configuration management and
|
|
||||||
multi-machine deployment system, unlike any that already exist, and
|
|
||||||
one that is very well suited to deploying complex applications.
|
|
||||||
|
|
||||||
While you might run the main ``/usr/bin/ansible`` program for ad-hoc
|
|
||||||
tasks, playbooks are more likely to be kept in source control and used
|
|
||||||
to push out your configuration or assure the configurations of your
|
|
||||||
remote systems are in spec.
|
|
||||||
|
|
||||||
|
|
||||||
Playbook Example
|
|
||||||
````````````````
|
|
||||||
|
|
||||||
Playbooks are expressed in YAML format and have a minimum of syntax.
|
|
||||||
Each playbook is composed of one or more 'plays' in a list. By
|
|
||||||
composing a playbook of multiple 'plays', it is possible to
|
|
||||||
orchestrate multi-machine deployments, running certain steps on all
|
|
||||||
machines in the webservers group, then certain steps on the database
|
|
||||||
server group, then more commands back on the webservers group, etc::
|
|
||||||
|
|
||||||
---
|
|
||||||
- hosts: webservers
|
|
||||||
vars:
|
|
||||||
http_port: 80
|
|
||||||
max_clients: 200
|
|
||||||
user: root
|
|
||||||
tasks:
|
|
||||||
- include: base.yml somevar=3 othervar=4
|
|
||||||
- name: write the apache config file
|
|
||||||
action: template src=/srv/httpd.j2 dest=/etc/httpd.conf
|
|
||||||
notify:
|
|
||||||
- restart apache
|
|
||||||
- name: ensure apache is running
|
|
||||||
action: service name=httpd state=started
|
|
||||||
handlers:
|
|
||||||
- include: handlers.yml
|
|
||||||
|
|
||||||
Hosts line
|
|
||||||
``````````
|
|
||||||
|
|
||||||
The hosts line is a list of one or more groups or host patterns,
|
|
||||||
seperated by colons, asdescribed in the :ref:`patterns` documentation.
|
|
||||||
This is just like the first parameter to ``/usr/bin/ansible``.
|
|
||||||
|
|
||||||
Vars section
|
|
||||||
````````````
|
|
||||||
|
|
||||||
A list of variables and values that can be used in the plays. These
|
|
||||||
can be used in templates or 'action' lines and are dereferenced using
|
|
||||||
```jinja2``` syntax like this::
|
|
||||||
|
|
||||||
{{ varname }}
|
|
||||||
|
|
||||||
Further, if there are discovered variables about the system (say, if
|
|
||||||
facter or ohai were installed) these variables bubble up back into the
|
|
||||||
playbook, and can be used on each system just like explicitly set
|
|
||||||
variables. Facter variables are prefixed with ``facter_`` and Ohai
|
|
||||||
variables are prefixed with ``ohai_``. So for instance, if I wanted
|
|
||||||
to write the hostname into the /etc/motd file, I could say::
|
|
||||||
|
|
||||||
- name: write the motd
|
|
||||||
- action: template src=/srv/templates/motd.j2 dest=/etc/motd
|
|
||||||
|
|
||||||
And in /srv/templates/motd.j2::
|
|
||||||
|
|
||||||
You are logged into {{ facter_hostname }}
|
|
||||||
|
|
||||||
But we're getting ahead of ourselves. Let's talk about tasks.
|
|
||||||
|
|
||||||
Tasks list
|
|
||||||
``````````
|
|
||||||
|
|
||||||
Each play contains a list of tasks. Tasks are executed in order, one
|
|
||||||
at a time, against all machines matched by the play's host pattern,
|
|
||||||
before moving on to the next task.
|
|
||||||
|
|
||||||
Hosts with failed tasks are taken out of the rotation for the entire
|
|
||||||
playbook. If things fail, simply correct the playbook file and rerun.
|
|
||||||
|
|
||||||
Modules other than command are idempotent, meaning if you run them
|
|
||||||
again, they will make the changes they are told to make to bring the
|
|
||||||
system to the desired state.
|
|
||||||
|
|
||||||
Task name and action
|
|
||||||
`````````````````````
|
|
||||||
|
|
||||||
Every task must have a name, which is included in the output from
|
|
||||||
running the playbook.
|
|
||||||
|
|
||||||
The action line is the name of an ansible module followed by
|
|
||||||
parameters. Usually these are expressed in ``key=value`` form, except
|
|
||||||
for the command module, which looks just like a Linux/Unix command
|
|
||||||
line. See the module documentation for more info.
|
|
||||||
|
|
||||||
Variables, as mentioned above, can be used in action lines. So if,
|
|
||||||
hypothetically, you wanted to make a directory on each system named
|
|
||||||
after the hostname ... yeah, that's I know silly ... you could do it
|
|
||||||
like so::
|
|
||||||
|
|
||||||
- name: make a directory
|
|
||||||
- action: mkdir /tmp/{{ facter_hostname }}
|
|
||||||
|
|
||||||
Notify statements
|
|
||||||
`````````````````
|
|
||||||
|
|
||||||
Nearly all modules are written to be 'idempotent' and can signal when
|
|
||||||
they have affected a change on the remote system. If a notify
|
|
||||||
statement is used, the named handler will be run against each system
|
|
||||||
where a change was effected, but NOT on systems where no change
|
|
||||||
occurred. This happens after all of the tasks are run. For example,
|
|
||||||
if notifying Apache and potentially replacing lots of configuration
|
|
||||||
files, you could have Apache restart just once, at the end of a run.
|
|
||||||
If you need Apache restarted in the middle of a run, you could just
|
|
||||||
make a task for it, no harm done. Notifiers are optional.
|
|
||||||
|
|
||||||
Handlers
|
|
||||||
````````
|
|
||||||
|
|
||||||
Handlers are lists of tasks, not really any different from regular
|
|
||||||
tasks, that are referenced by name. Handlers are what notifiers
|
|
||||||
notify. If nothing notifies a handler, it will not run. Regardless
|
|
||||||
of how many things notify a handler, it will run only once, after all
|
|
||||||
of the tasks complete in a particular play.
|
|
||||||
|
|
||||||
Includes
|
|
||||||
````````
|
|
||||||
|
|
||||||
Not all tasks have to be listed directly in the main file. An include
|
|
||||||
file can contain a list of tasks (in YAML) as well, optionally passing
|
|
||||||
extra variables into the file. Variables passed in can be deferenced
|
|
||||||
like this (assume a variable named 'user')::
|
|
||||||
|
|
||||||
{{ user }}
|
|
||||||
|
|
||||||
For instance, if deploying multiple wordpress instances, I could
|
|
||||||
contain all of my tasks in a wordpress.yml file, and use it like so::
|
|
||||||
|
|
||||||
- tasks:
|
|
||||||
- include: wordpress.yml user=timmy
|
|
||||||
- include: wordpress.yml user=alice
|
|
||||||
- include: wordpress.yml user=bob
|
|
||||||
|
|
||||||
In addition to the explicitly passed in parameters, all variables from
|
|
||||||
the vars section are also available.
|
|
||||||
|
|
||||||
The format of an included list of tasks or handlers looks just like a
|
|
||||||
flat list of tasks. Here is an example of what base.yml might look
|
|
||||||
like::
|
|
||||||
|
|
||||||
---
|
|
||||||
- name: no selinux
|
|
||||||
action: command /usr/sbin/setenforce 0
|
|
||||||
- name: no iptables
|
|
||||||
action: service name=iptables state=stopped
|
|
||||||
- name: this is just to show variables work here, favcolor={{ favcolor }}
|
|
||||||
action: command /bin/true
|
|
||||||
|
|
||||||
As you can see above, variables in include files work just like they
|
|
||||||
do in the main file. Including a variable in the name of a task is a
|
|
||||||
contrived example, you could also pass them to the action command line
|
|
||||||
or use them inside a template file.
|
|
||||||
|
|
||||||
Note that include statements are only usable from the top level
|
|
||||||
playbook file. At this time, includes can not include other includes.
|
|
||||||
|
|
||||||
Using Includes To Assign Classes of Systems
|
|
||||||
```````````````````````````````````````````
|
|
||||||
|
|
||||||
Include files are best used to reuse logic between playbooks. You
|
|
||||||
could imagine a playbook describing your entire infrastructure like
|
|
||||||
this::
|
|
||||||
|
|
||||||
---
|
|
||||||
- hosts: atlanta-webservers
|
|
||||||
vars:
|
|
||||||
datacenter: atlanta
|
|
||||||
tasks:
|
|
||||||
- include: base.yml
|
|
||||||
- include: webservers.yml database=db.atlanta.com
|
|
||||||
handlers:
|
|
||||||
- include: generic-handlers.yml
|
|
||||||
- hosts: atlanta-dbservers
|
|
||||||
vars:
|
|
||||||
datacenter: atlanta
|
|
||||||
tasks:
|
|
||||||
- include: base.yml
|
|
||||||
- include: dbservers.yml
|
|
||||||
handlers:
|
|
||||||
- include: generic-handlers.yml
|
|
||||||
|
|
||||||
There is one (or more) play defined for each group of systems, and
|
|
||||||
each play maps each group includes one or more 'class definitions'
|
|
||||||
telling the systems what they are supposed to do or be.
|
|
||||||
|
|
||||||
Using a common handlers file could allow one task in 'webservers' to
|
|
||||||
define 'restart apache', and it could be reused between multiple
|
|
||||||
plays.
|
|
||||||
|
|
||||||
Variables like 'database' above can be used in templates referenced
|
|
||||||
from the configuration file to generate machine specific variables.
|
|
||||||
|
|
||||||
Asynchronous Actions and Polling
|
|
||||||
````````````````````````````````
|
|
||||||
|
|
||||||
(Information on this feature is pending)
|
|
||||||
|
|
||||||
|
|
||||||
Executing A Playbook
|
|
||||||
````````````````````
|
|
||||||
|
|
||||||
To run a playbook::
|
|
||||||
|
|
||||||
ansible-playbook playbook.yml
|
|
||||||
|
|
@ -1,349 +0,0 @@
|
|||||||
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
||||||
|
|
||||||
<title>Introducing Ansible — Ansible v0.0.1 documentation</title>
|
|
||||||
<link rel="stylesheet" href="_static/default.css" type="text/css" />
|
|
||||||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
|
||||||
<link rel="stylesheet" href="_static/bootstrap.css" type="text/css" />
|
|
||||||
<link rel="stylesheet" href="_static/bootstrap-sphinx.css" type="text/css" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
var DOCUMENTATION_OPTIONS = {
|
|
||||||
URL_ROOT: '',
|
|
||||||
VERSION: '0.0.1',
|
|
||||||
COLLAPSE_INDEX: false,
|
|
||||||
FILE_SUFFIX: '.html',
|
|
||||||
HAS_SOURCE: false
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
|
||||||
<script type="text/javascript" src="_static/underscore.js"></script>
|
|
||||||
<script type="text/javascript" src="_static/doctools.js"></script>
|
|
||||||
<script type="text/javascript" src="_static/bootstrap-dropdown.js"></script>
|
|
||||||
<script type="text/javascript" src="_static/bootstrap-scrollspy.js"></script>
|
|
||||||
<link rel="top" title="Ansible v0.0.1 documentation" href="#" />
|
|
||||||
<link rel="next" title="Downloads & Getting Started" href="gettingstarted.html" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
(function () {
|
|
||||||
/**
|
|
||||||
* Patch TOC list.
|
|
||||||
*
|
|
||||||
* Will mutate the underlying span to have a correct ul for nav.
|
|
||||||
*
|
|
||||||
* @param $span: Span containing nested UL's to mutate.
|
|
||||||
* @param minLevel: Starting level for nested lists. (1: global, 2: local).
|
|
||||||
*/
|
|
||||||
var patchToc = function ($span, minLevel) {
|
|
||||||
var $tocList = $("<ul/>").attr('class', "dropdown-menu"),
|
|
||||||
findA;
|
|
||||||
|
|
||||||
// Find all a "internal" tags, traversing recursively.
|
|
||||||
findA = function ($elem, level) {
|
|
||||||
var level = level || 0,
|
|
||||||
$items = $elem.find("> li > a.internal, > ul, > li > ul");
|
|
||||||
|
|
||||||
// Iterate everything in order.
|
|
||||||
$items.each(function (index, item) {
|
|
||||||
var $item = $(item),
|
|
||||||
tag = item.tagName.toLowerCase(),
|
|
||||||
pad = 10 + ((level - minLevel) * 10);
|
|
||||||
|
|
||||||
if (tag === 'a' && level >= minLevel) {
|
|
||||||
// Add to existing padding.
|
|
||||||
$item.css('padding-left', pad + "px");
|
|
||||||
// Add list element.
|
|
||||||
$tocList.append($("<li/>").append($item));
|
|
||||||
} else if (tag === 'ul') {
|
|
||||||
// Recurse.
|
|
||||||
findA($item, level + 1);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
// Start construction and return.
|
|
||||||
findA($span);
|
|
||||||
|
|
||||||
// Wipe out old list and patch in new one.
|
|
||||||
return $span.empty("ul").append($tocList);
|
|
||||||
};
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
|
||||||
// Patch the global and local TOC's to be bootstrap-compliant.
|
|
||||||
patchToc($("span.globaltoc"), 1);
|
|
||||||
patchToc($("span.localtoc"), 2);
|
|
||||||
|
|
||||||
// Activate.
|
|
||||||
$('#topbar').dropdown();
|
|
||||||
});
|
|
||||||
}());
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
var _gaq = _gaq || [];
|
|
||||||
_gaq.push(['_setAccount', 'UA-29861888-1']);
|
|
||||||
_gaq.push(['_trackPageview']);
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
var ga = document.createElement('script'); ga.type =
|
|
||||||
'text/javascript'; ga.async = true;
|
|
||||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
|
|
||||||
'http://www') + '.google-analytics.com/ga.js';
|
|
||||||
var s = document.getElementsByTagName('script')[0];
|
|
||||||
s.parentNode.insertBefore(ga, s);
|
|
||||||
})();
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="topbar" data-scrollspy="scrollspy" >
|
|
||||||
<div class="topbar-inner">
|
|
||||||
<div class="container">
|
|
||||||
<a class="brand" href="#">Ansible</a>
|
|
||||||
<ul class="nav">
|
|
||||||
|
|
||||||
<li class="dropdown" data-dropdown="dropdown">
|
|
||||||
<a href="#"
|
|
||||||
class="dropdown-toggle">Site</a>
|
|
||||||
<span class="globaltoc"><ul>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="gettingstarted.html">Downloads & Getting Started</a></li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="patterns.html">The Inventory File, Patterns, and Groups</a></li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="examples.html">Command Line Examples</a></li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="modules.html">Ansible Modules</a></li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="YAMLScripts.html">YAML Format</a></li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="playbooks.html">Playbooks</a></li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="api.html">Using the Python API</a></li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a></li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="man.html">Man Pages</a></li>
|
|
||||||
</ul>
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
<li class="dropdown" data-dropdown="dropdown">
|
|
||||||
<a href="#"
|
|
||||||
class="dropdown-toggle">Page</a>
|
|
||||||
<span class="localtoc"><ul>
|
|
||||||
<li><a class="reference internal" href="#">Introducing Ansible</a><ul>
|
|
||||||
<li><a class="reference internal" href="#architecture">Architecture</a></li>
|
|
||||||
<li><a class="reference internal" href="#design-goals">Design Goals</a></li>
|
|
||||||
<li><a class="reference internal" href="#resources">Resources</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a class="reference internal" href="#contents">Contents</a><ul>
|
|
||||||
<li><a class="reference internal" href="#about-the-author">About the Author</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li><a href="gettingstarted.html"
|
|
||||||
title="next chapter">Downloads & Getting Started »</a></li>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
<ul class="nav secondary-nav">
|
|
||||||
|
|
||||||
|
|
||||||
<form class="pull-left" action="search.html" method="get">
|
|
||||||
<input type="text" name="q" placeholder="Search" />
|
|
||||||
<input type="hidden" name="check_keywords" value="yes" />
|
|
||||||
<input type="hidden" name="area" value="default" />
|
|
||||||
</form>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<a href="https://github.com/ansible/ansible"><img
|
|
||||||
style="position: absolute; top: 40px; right: 0; border: 0;"
|
|
||||||
src="https://a248.e.akamai.net/assets.github.com/img/71eeaab9d563c2b3c590319b398dd35683265e85/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67"
|
|
||||||
alt="Fork me on GitHub"
|
|
||||||
alt="Fork me on GitHub"></a>
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<a class="reference external image-reference" href="http://photos.michaeldehaan.net/infrared/h3d850bdf#h3d850bdf"><img alt="""" src="http://ansible.github.com/html/mpd_rings.jpg" style="width: 300px; height: 225px;" /></a>
|
|
||||||
<a class="reference external image-reference" href="http://photos.michaeldehaan.net/favorites/h2428aca7#h2428aca7"><img alt="""" src="http://ansible.github.com/html/mpd_tunnel.jpg" style="width: 337px; height: 225px;" /></a>
|
|
||||||
<a class="reference external image-reference" href="http://photos.michaeldehaan.net/ncsu/h3b63b68e#h3b63b68e"><img alt="""" src="http://ansible.github.com/html/mpd_tubes.jpg" style="width: 225px; height: 225px;" /></a>
|
|
||||||
<div class="section" id="introducing-ansible">
|
|
||||||
<h1>Introducing Ansible<a class="headerlink" href="#introducing-ansible" title="Permalink to this headline">¶</a></h1>
|
|
||||||
<p>Ansible is a radically simple deployment, configuration, and command
|
|
||||||
execution framework. Other tools in this space have been too
|
|
||||||
complicated for too long, require too much bootstrapping, and have too
|
|
||||||
much learning curve. Ansible is dead simple and painless to extend.
|
|
||||||
For comparison, Puppet and Chef have about 60k lines of code.
|
|
||||||
Ansible’s core is a little over 1000 lines.</p>
|
|
||||||
<p>Ansible isn’t just for configuration – it’s also great for Ad-Hoc
|
|
||||||
tasks, quickly firing off commands against nodes. Where Ansible
|
|
||||||
excels though, is expressing complex multi-node deployment processes,
|
|
||||||
executing complex sequences of commands on different hosts through
|
|
||||||
<a class="reference internal" href="playbooks.html"><em>Playbooks</em></a>.</p>
|
|
||||||
<p>Extending ansible does not require programming in any particular
|
|
||||||
language – you can write modules as scripts or programs that return
|
|
||||||
simple JSON. It’s also trivially easy to just execute useful shell
|
|
||||||
commands.</p>
|
|
||||||
<p>Why use Ansible versus something else? (Puppet, Chef, Fabric,
|
|
||||||
Capistrano, mCollective, Func, SaltStack, etc?) Ansible will have far
|
|
||||||
less code, it will be (by extension) more correct, and it will be the
|
|
||||||
easiest thing to hack on and use you’ll ever see – regardless of your
|
|
||||||
favorite language of choice.</p>
|
|
||||||
<p>Systems management doesn’t have to be complicated. Ansible’s docs
|
|
||||||
will remain short & simple, and the source will be blindingly obvious.</p>
|
|
||||||
<div class="section" id="architecture">
|
|
||||||
<h2>Architecture<a class="headerlink" href="#architecture" title="Permalink to this headline">¶</a></h2>
|
|
||||||
<img alt=""Architecture Diagram"" src="http://ansible.github.com/html/ansible_arch.jpg" style="width: 648px; height: 464px;" />
|
|
||||||
</div>
|
|
||||||
<div class="section" id="design-goals">
|
|
||||||
<h2>Design Goals<a class="headerlink" href="#design-goals" title="Permalink to this headline">¶</a></h2>
|
|
||||||
<ul class="simple">
|
|
||||||
<li>Dead simple setup</li>
|
|
||||||
<li>Super fast & parallel by default</li>
|
|
||||||
<li>No server or client daemons; use existing SSHd out of the box</li>
|
|
||||||
<li>No additional software required on client boxes</li>
|
|
||||||
<li>Modules can be written in ANY language</li>
|
|
||||||
<li>Awesome API for creating very powerful distributed scripts</li>
|
|
||||||
<li>Be very usable as non-root</li>
|
|
||||||
<li>Create the easiest config management system to use, ever.</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="section" id="resources">
|
|
||||||
<h2>Resources<a class="headerlink" href="#resources" title="Permalink to this headline">¶</a></h2>
|
|
||||||
<p>Your ideas and contributions are welcome. We’re also happy to help
|
|
||||||
you with questions about Ansible.</p>
|
|
||||||
<ul class="simple">
|
|
||||||
<li>Join the <a class="reference external" href="http://groups.google.com/group/ansible-project">ansible-project mailing list</a> on Google Groups</li>
|
|
||||||
<li>Join <a class="reference external" href="irc://irc.freenode.net/#ansible">#ansible</a> on the <a class="reference external" href="http://freenode.net/">freenode IRC network</a></li>
|
|
||||||
<li>Visit the <a class="reference external" href="https://github.com/ansible/ansible">project page</a> on Github<ul>
|
|
||||||
<li>View the <a class="reference external" href="https://github.com/ansible/ansible/issues">issue tracker</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="section" id="contents">
|
|
||||||
<h1>Contents<a class="headerlink" href="#contents" title="Permalink to this headline">¶</a></h1>
|
|
||||||
<div class="toctree-wrapper compound">
|
|
||||||
<ul>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="gettingstarted.html">Downloads & Getting Started</a><ul>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="gettingstarted.html#requirements">Requirements</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="gettingstarted.html#developer-requirements">Developer Requirements</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="gettingstarted.html#getting-ansible">Getting Ansible</a><ul>
|
|
||||||
<li class="toctree-l3"><a class="reference internal" href="gettingstarted.html#python-distutils">Python Distutils</a></li>
|
|
||||||
<li class="toctree-l3"><a class="reference internal" href="gettingstarted.html#via-rpm">Via RPM</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="gettingstarted.html#your-first-commands">Your first commands</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="patterns.html">The Inventory File, Patterns, and Groups</a><ul>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="patterns.html#inventory-file-format">Inventory File Format</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="patterns.html#selecting-targets">Selecting Targets</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="examples.html">Command Line Examples</a><ul>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="examples.html#parallelism-and-shell-commands">Parallelism and Shell Commands</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="examples.html#file-transfer-templating">File Transfer & Templating</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="examples.html#managing-packages">Managing Packages</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="examples.html#deploying-from-source-control">Deploying From Source Control</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="examples.html#managing-services">Managing Services</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="examples.html#time-limited-background-operations">Time Limited Background Operations</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="modules.html">Ansible Modules</a><ul>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="modules.html#command">command</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="modules.html#copy">copy</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="modules.html#facter">facter</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="modules.html#git">git</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="modules.html#ohai">ohai</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="modules.html#ping">ping</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="modules.html#service">service</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="modules.html#setup">setup</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="modules.html#template">template</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="modules.html#yum">yum</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="modules.html#writing-your-own-modules">Writing your own modules</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="YAMLScripts.html">YAML Format</a><ul>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="YAMLScripts.html#yaml-basics">YAML Basics</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="playbooks.html">Playbooks</a><ul>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#playbook-example">Playbook Example</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#hosts-line">Hosts line</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#vars-section">Vars section</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#tasks-list">Tasks list</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#task-name-and-action">Task name and action</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#notify-statements">Notify statements</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#handlers">Handlers</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#includes">Includes</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#using-includes-to-assign-classes-of-systems">Using Includes To Assign Classes of Systems</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#asynchronous-actions-and-polling">Asynchronous Actions and Polling</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#executing-a-playbook">Executing A Playbook</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="api.html">Using the Python API</a><ul>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="api.html#detailed-api-example">Detailed API Example</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a><ul>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="faq.html#what-inspired-ansible">What inspired Ansible?</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="faq.html#comparisons">Comparisons</a><ul>
|
|
||||||
<li class="toctree-l3"><a class="reference internal" href="faq.html#vs-func">vs Func?</a></li>
|
|
||||||
<li class="toctree-l3"><a class="reference internal" href="faq.html#vs-puppet">vs Puppet?</a></li>
|
|
||||||
<li class="toctree-l3"><a class="reference internal" href="faq.html#vs-chef">vs Chef?</a></li>
|
|
||||||
<li class="toctree-l3"><a class="reference internal" href="faq.html#vs-capistrano-fabric">vs Capistrano/Fabric?</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="faq.html#other-questions">Other Questions</a><ul>
|
|
||||||
<li class="toctree-l3"><a class="reference internal" href="faq.html#how-does-ansible-scale">How does Ansible scale?</a></li>
|
|
||||||
<li class="toctree-l3"><a class="reference internal" href="faq.html#are-transports-other-than-ssh-supported">Are transports other than SSH supported?</a></li>
|
|
||||||
<li class="toctree-l3"><a class="reference internal" href="faq.html#what-are-some-ideal-uses-for-ansible">What are some ideal uses for Ansible?</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="toctree-l1"><a class="reference internal" href="man.html">Man Pages</a><ul>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="man.html#ansible-1">ansible(1)</a></li>
|
|
||||||
<li class="toctree-l2"><a class="reference internal" href="man.html#ansible-playbook-1">ansible-playbook(1)</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="section" id="about-the-author">
|
|
||||||
<h2>About the Author<a class="headerlink" href="#about-the-author" title="Permalink to this headline">¶</a></h2>
|
|
||||||
<p>Ansible was originally developed by <a class="reference external" href="http://michaeldehaan.net">Michael DeHaan</a> (<a class="reference external" href="http://twitter.com/#!/laserllama">@laserllama</a>), a Raleigh, NC
|
|
||||||
based software developer and architect. He created other popular
|
|
||||||
DevOps programs such as <a class="reference external" href="http://cobbler.github.com/">Cobbler</a>, the popular Linux install server.
|
|
||||||
Cobbler is used to deploy mission critical systems all over the
|
|
||||||
planet, in industries ranging from massively multiplayer gaming, core
|
|
||||||
internet infrastructure, finance, chip design, and more. Michael also
|
|
||||||
helped co-author of <a class="reference external" href="http://fedorahosted.org/func/">Func</a>, a precursor to Ansible, which is used to
|
|
||||||
orchestrate systems in lots of diverse places. He’s worked on systems
|
|
||||||
software for IBM, Motorola, Red Hat’s Emerging Technologies Group,
|
|
||||||
Puppet Labs, and rPath. Reach Michael by email <a class="reference external" href="mailto:michael.dehaan%40gmail.com">here</a>.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<footer class="footer">
|
|
||||||
<div class="container">
|
|
||||||
<p class="pull-right"><a href="#">Back to top</a></p>
|
|
||||||
<p>
|
|
||||||
© Copyright 2012 Michael DeHaan.<br/>
|
|
||||||
Last updated on Mar 10, 2012.<br/>
|
|
||||||
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.8.<br/>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,12 +1,349 @@
|
|||||||
<html>
|
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<title>Redirecting to the Ansible Documentation...</title>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta http-equiv="Refresh" content="0; url=./html/index.html" />
|
|
||||||
|
<title>Introducing Ansible — Ansible v0.0.1 documentation</title>
|
||||||
|
<link rel="stylesheet" href="_static/default.css" type="text/css" />
|
||||||
|
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
||||||
|
<link rel="stylesheet" href="_static/bootstrap.css" type="text/css" />
|
||||||
|
<link rel="stylesheet" href="_static/bootstrap-sphinx.css" type="text/css" />
|
||||||
|
<script type="text/javascript">
|
||||||
|
var DOCUMENTATION_OPTIONS = {
|
||||||
|
URL_ROOT: '',
|
||||||
|
VERSION: '0.0.1',
|
||||||
|
COLLAPSE_INDEX: false,
|
||||||
|
FILE_SUFFIX: '.html',
|
||||||
|
HAS_SOURCE: false
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||||
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
||||||
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
||||||
|
<script type="text/javascript" src="_static/bootstrap-dropdown.js"></script>
|
||||||
|
<script type="text/javascript" src="_static/bootstrap-scrollspy.js"></script>
|
||||||
|
<link rel="top" title="Ansible v0.0.1 documentation" href="#" />
|
||||||
|
<link rel="next" title="Downloads & Getting Started" href="gettingstarted.html" />
|
||||||
|
<script type="text/javascript">
|
||||||
|
(function () {
|
||||||
|
/**
|
||||||
|
* Patch TOC list.
|
||||||
|
*
|
||||||
|
* Will mutate the underlying span to have a correct ul for nav.
|
||||||
|
*
|
||||||
|
* @param $span: Span containing nested UL's to mutate.
|
||||||
|
* @param minLevel: Starting level for nested lists. (1: global, 2: local).
|
||||||
|
*/
|
||||||
|
var patchToc = function ($span, minLevel) {
|
||||||
|
var $tocList = $("<ul/>").attr('class', "dropdown-menu"),
|
||||||
|
findA;
|
||||||
|
|
||||||
|
// Find all a "internal" tags, traversing recursively.
|
||||||
|
findA = function ($elem, level) {
|
||||||
|
var level = level || 0,
|
||||||
|
$items = $elem.find("> li > a.internal, > ul, > li > ul");
|
||||||
|
|
||||||
|
// Iterate everything in order.
|
||||||
|
$items.each(function (index, item) {
|
||||||
|
var $item = $(item),
|
||||||
|
tag = item.tagName.toLowerCase(),
|
||||||
|
pad = 10 + ((level - minLevel) * 10);
|
||||||
|
|
||||||
|
if (tag === 'a' && level >= minLevel) {
|
||||||
|
// Add to existing padding.
|
||||||
|
$item.css('padding-left', pad + "px");
|
||||||
|
// Add list element.
|
||||||
|
$tocList.append($("<li/>").append($item));
|
||||||
|
} else if (tag === 'ul') {
|
||||||
|
// Recurse.
|
||||||
|
findA($item, level + 1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// Start construction and return.
|
||||||
|
findA($span);
|
||||||
|
|
||||||
|
// Wipe out old list and patch in new one.
|
||||||
|
return $span.empty("ul").append($tocList);
|
||||||
|
};
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
// Patch the global and local TOC's to be bootstrap-compliant.
|
||||||
|
patchToc($("span.globaltoc"), 1);
|
||||||
|
patchToc($("span.localtoc"), 2);
|
||||||
|
|
||||||
|
// Activate.
|
||||||
|
$('#topbar').dropdown();
|
||||||
|
});
|
||||||
|
}());
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
var _gaq = _gaq || [];
|
||||||
|
_gaq.push(['_setAccount', 'UA-29861888-1']);
|
||||||
|
_gaq.push(['_trackPageview']);
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
var ga = document.createElement('script'); ga.type =
|
||||||
|
'text/javascript'; ga.async = true;
|
||||||
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
|
||||||
|
'http://www') + '.google-analytics.com/ga.js';
|
||||||
|
var s = document.getElementsByTagName('script')[0];
|
||||||
|
s.parentNode.insertBefore(ga, s);
|
||||||
|
})();
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div class="topbar" data-scrollspy="scrollspy" >
|
||||||
|
<div class="topbar-inner">
|
||||||
|
<div class="container">
|
||||||
|
<a class="brand" href="#">Ansible</a>
|
||||||
|
<ul class="nav">
|
||||||
|
|
||||||
|
<li class="dropdown" data-dropdown="dropdown">
|
||||||
|
<a href="#"
|
||||||
|
class="dropdown-toggle">Site</a>
|
||||||
|
<span class="globaltoc"><ul>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="gettingstarted.html">Downloads & Getting Started</a></li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="patterns.html">The Inventory File, Patterns, and Groups</a></li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="examples.html">Command Line Examples</a></li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="modules.html">Ansible Modules</a></li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="YAMLScripts.html">YAML Format</a></li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="playbooks.html">Playbooks</a></li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="api.html">Using the Python API</a></li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a></li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="man.html">Man Pages</a></li>
|
||||||
|
</ul>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
<li class="dropdown" data-dropdown="dropdown">
|
||||||
|
<a href="#"
|
||||||
|
class="dropdown-toggle">Page</a>
|
||||||
|
<span class="localtoc"><ul>
|
||||||
|
<li><a class="reference internal" href="#">Introducing Ansible</a><ul>
|
||||||
|
<li><a class="reference internal" href="#architecture">Architecture</a></li>
|
||||||
|
<li><a class="reference internal" href="#design-goals">Design Goals</a></li>
|
||||||
|
<li><a class="reference internal" href="#resources">Resources</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a class="reference internal" href="#contents">Contents</a><ul>
|
||||||
|
<li><a class="reference internal" href="#about-the-author">About the Author</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li><a href="gettingstarted.html"
|
||||||
|
title="next chapter">Downloads & Getting Started »</a></li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<ul class="nav secondary-nav">
|
||||||
|
|
||||||
|
|
||||||
|
<form class="pull-left" action="search.html" method="get">
|
||||||
|
<input type="text" name="q" placeholder="Search" />
|
||||||
|
<input type="hidden" name="check_keywords" value="yes" />
|
||||||
|
<input type="hidden" name="area" value="default" />
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/ansible/ansible"><img
|
||||||
|
style="position: absolute; top: 40px; right: 0; border: 0;"
|
||||||
|
src="https://a248.e.akamai.net/assets.github.com/img/71eeaab9d563c2b3c590319b398dd35683265e85/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67"
|
||||||
|
alt="Fork me on GitHub"
|
||||||
|
alt="Fork me on GitHub"></a>
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
|
<a class="reference external image-reference" href="http://photos.michaeldehaan.net/infrared/h3d850bdf#h3d850bdf"><img alt="""" src="http://ansible.github.com/mpd_rings.jpg" style="width: 300px; height: 225px;" /></a>
|
||||||
|
<a class="reference external image-reference" href="http://photos.michaeldehaan.net/favorites/h2428aca7#h2428aca7"><img alt="""" src="http://ansible.github.com/mpd_tunnel.jpg" style="width: 337px; height: 225px;" /></a>
|
||||||
|
<a class="reference external image-reference" href="http://photos.michaeldehaan.net/ncsu/h3b63b68e#h3b63b68e"><img alt="""" src="http://ansible.github.com/mpd_tubes.jpg" style="width: 225px; height: 225px;" /></a>
|
||||||
|
<div class="section" id="introducing-ansible">
|
||||||
|
<h1>Introducing Ansible<a class="headerlink" href="#introducing-ansible" title="Permalink to this headline">¶</a></h1>
|
||||||
|
<p>Ansible is a radically simple deployment, configuration, and command
|
||||||
|
execution framework. Other tools in this space have been too
|
||||||
|
complicated for too long, require too much bootstrapping, and have too
|
||||||
|
much learning curve. Ansible is dead simple and painless to extend.
|
||||||
|
For comparison, Puppet and Chef have about 60k lines of code.
|
||||||
|
Ansible’s core is a little over 1000 lines.</p>
|
||||||
|
<p>Ansible isn’t just for configuration – it’s also great for Ad-Hoc
|
||||||
|
tasks, quickly firing off commands against nodes. Where Ansible
|
||||||
|
excels though, is expressing complex multi-node deployment processes,
|
||||||
|
executing complex sequences of commands on different hosts through
|
||||||
|
<a class="reference internal" href="playbooks.html"><em>Playbooks</em></a>.</p>
|
||||||
|
<p>Extending ansible does not require programming in any particular
|
||||||
|
language – you can write modules as scripts or programs that return
|
||||||
|
simple JSON. It’s also trivially easy to just execute useful shell
|
||||||
|
commands.</p>
|
||||||
|
<p>Why use Ansible versus something else? (Puppet, Chef, Fabric,
|
||||||
|
Capistrano, mCollective, Func, SaltStack, etc?) Ansible will have far
|
||||||
|
less code, it will be (by extension) more correct, and it will be the
|
||||||
|
easiest thing to hack on and use you’ll ever see – regardless of your
|
||||||
|
favorite language of choice.</p>
|
||||||
|
<p>Systems management doesn’t have to be complicated. Ansible’s docs
|
||||||
|
will remain short & simple, and the source will be blindingly obvious.</p>
|
||||||
|
<div class="section" id="architecture">
|
||||||
|
<h2>Architecture<a class="headerlink" href="#architecture" title="Permalink to this headline">¶</a></h2>
|
||||||
|
<img alt=""Architecture Diagram"" src="http://ansible.github.com/ansible_arch.jpg" style="width: 648px; height: 464px;" />
|
||||||
|
</div>
|
||||||
|
<div class="section" id="design-goals">
|
||||||
|
<h2>Design Goals<a class="headerlink" href="#design-goals" title="Permalink to this headline">¶</a></h2>
|
||||||
|
<ul class="simple">
|
||||||
|
<li>Dead simple setup</li>
|
||||||
|
<li>Super fast & parallel by default</li>
|
||||||
|
<li>No server or client daemons; use existing SSHd out of the box</li>
|
||||||
|
<li>No additional software required on client boxes</li>
|
||||||
|
<li>Modules can be written in ANY language</li>
|
||||||
|
<li>Awesome API for creating very powerful distributed scripts</li>
|
||||||
|
<li>Be very usable as non-root</li>
|
||||||
|
<li>Create the easiest config management system to use, ever.</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="resources">
|
||||||
|
<h2>Resources<a class="headerlink" href="#resources" title="Permalink to this headline">¶</a></h2>
|
||||||
|
<p>Your ideas and contributions are welcome. We’re also happy to help
|
||||||
|
you with questions about Ansible.</p>
|
||||||
|
<ul class="simple">
|
||||||
|
<li>Join the <a class="reference external" href="http://groups.google.com/group/ansible-project">ansible-project mailing list</a> on Google Groups</li>
|
||||||
|
<li>Join <a class="reference external" href="irc://irc.freenode.net/#ansible">#ansible</a> on the <a class="reference external" href="http://freenode.net/">freenode IRC network</a></li>
|
||||||
|
<li>Visit the <a class="reference external" href="https://github.com/ansible/ansible">project page</a> on Github<ul>
|
||||||
|
<li>View the <a class="reference external" href="https://github.com/ansible/ansible/issues">issue tracker</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="contents">
|
||||||
|
<h1>Contents<a class="headerlink" href="#contents" title="Permalink to this headline">¶</a></h1>
|
||||||
|
<div class="toctree-wrapper compound">
|
||||||
|
<ul>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="gettingstarted.html">Downloads & Getting Started</a><ul>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="gettingstarted.html#requirements">Requirements</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="gettingstarted.html#developer-requirements">Developer Requirements</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="gettingstarted.html#getting-ansible">Getting Ansible</a><ul>
|
||||||
|
<li class="toctree-l3"><a class="reference internal" href="gettingstarted.html#python-distutils">Python Distutils</a></li>
|
||||||
|
<li class="toctree-l3"><a class="reference internal" href="gettingstarted.html#via-rpm">Via RPM</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="gettingstarted.html#your-first-commands">Your first commands</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="patterns.html">The Inventory File, Patterns, and Groups</a><ul>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="patterns.html#inventory-file-format">Inventory File Format</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="patterns.html#selecting-targets">Selecting Targets</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="examples.html">Command Line Examples</a><ul>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="examples.html#parallelism-and-shell-commands">Parallelism and Shell Commands</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="examples.html#file-transfer-templating">File Transfer & Templating</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="examples.html#managing-packages">Managing Packages</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="examples.html#deploying-from-source-control">Deploying From Source Control</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="examples.html#managing-services">Managing Services</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="examples.html#time-limited-background-operations">Time Limited Background Operations</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="modules.html">Ansible Modules</a><ul>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="modules.html#command">command</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="modules.html#copy">copy</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="modules.html#facter">facter</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="modules.html#git">git</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="modules.html#ohai">ohai</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="modules.html#ping">ping</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="modules.html#service">service</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="modules.html#setup">setup</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="modules.html#template">template</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="modules.html#yum">yum</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="modules.html#writing-your-own-modules">Writing your own modules</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="YAMLScripts.html">YAML Format</a><ul>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="YAMLScripts.html#yaml-basics">YAML Basics</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="playbooks.html">Playbooks</a><ul>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#playbook-example">Playbook Example</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#hosts-line">Hosts line</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#vars-section">Vars section</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#tasks-list">Tasks list</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#task-name-and-action">Task name and action</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#notify-statements">Notify statements</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#handlers">Handlers</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#includes">Includes</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#using-includes-to-assign-classes-of-systems">Using Includes To Assign Classes of Systems</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#asynchronous-actions-and-polling">Asynchronous Actions and Polling</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="playbooks.html#executing-a-playbook">Executing A Playbook</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="api.html">Using the Python API</a><ul>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="api.html#detailed-api-example">Detailed API Example</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a><ul>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="faq.html#what-inspired-ansible">What inspired Ansible?</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="faq.html#comparisons">Comparisons</a><ul>
|
||||||
|
<li class="toctree-l3"><a class="reference internal" href="faq.html#vs-func">vs Func?</a></li>
|
||||||
|
<li class="toctree-l3"><a class="reference internal" href="faq.html#vs-puppet">vs Puppet?</a></li>
|
||||||
|
<li class="toctree-l3"><a class="reference internal" href="faq.html#vs-chef">vs Chef?</a></li>
|
||||||
|
<li class="toctree-l3"><a class="reference internal" href="faq.html#vs-capistrano-fabric">vs Capistrano/Fabric?</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="faq.html#other-questions">Other Questions</a><ul>
|
||||||
|
<li class="toctree-l3"><a class="reference internal" href="faq.html#how-does-ansible-scale">How does Ansible scale?</a></li>
|
||||||
|
<li class="toctree-l3"><a class="reference internal" href="faq.html#are-transports-other-than-ssh-supported">Are transports other than SSH supported?</a></li>
|
||||||
|
<li class="toctree-l3"><a class="reference internal" href="faq.html#what-are-some-ideal-uses-for-ansible">What are some ideal uses for Ansible?</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="toctree-l1"><a class="reference internal" href="man.html">Man Pages</a><ul>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="man.html#ansible-1">ansible(1)</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="man.html#ansible-playbook-1">ansible-playbook(1)</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="section" id="about-the-author">
|
||||||
|
<h2>About the Author<a class="headerlink" href="#about-the-author" title="Permalink to this headline">¶</a></h2>
|
||||||
|
<p>Ansible was originally developed by <a class="reference external" href="http://michaeldehaan.net">Michael DeHaan</a> (<a class="reference external" href="http://twitter.com/#!/laserllama">@laserllama</a>), a Raleigh, NC
|
||||||
|
based software developer and architect. He created other popular
|
||||||
|
DevOps programs such as <a class="reference external" href="http://cobbler.github.com/">Cobbler</a>, the popular Linux install server.
|
||||||
|
Cobbler is used to deploy mission critical systems all over the
|
||||||
|
planet, in industries ranging from massively multiplayer gaming, core
|
||||||
|
internet infrastructure, finance, chip design, and more. Michael also
|
||||||
|
helped co-author of <a class="reference external" href="http://fedorahosted.org/func/">Func</a>, a precursor to Ansible, which is used to
|
||||||
|
orchestrate systems in lots of diverse places. He’s worked on systems
|
||||||
|
software for IBM, Motorola, Red Hat’s Emerging Technologies Group,
|
||||||
|
Puppet Labs, and rPath. Reach Michael by email <a class="reference external" href="mailto:michael.dehaan%40gmail.com">here</a>.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="container">
|
||||||
|
<p class="pull-right"><a href="#">Back to top</a></p>
|
||||||
<p>
|
<p>
|
||||||
Click <a href="http://www.example.com/">this link</a> if you are
|
© Copyright 2012 Michael DeHaan.<br/>
|
||||||
not automatically forwarded.
|
Last updated on Mar 10, 2012.<br/>
|
||||||
|
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.8.<br/>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>ansible-playbook</title><link rel="stylesheet" href="./docbook-xsl.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /></head><body><div xml:lang="en" class="refentry" title="ansible-playbook" lang="en"><a id="id322452"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ansible-playbook — run an ansible playbook</p></div><div class="refsynopsisdiv" title="Synopsis"><a id="_synopsis"></a><h2>Synopsis</h2><p>ansible-playbook <filename.yml> … [options]</p></div><div class="refsect1" title="DESCRIPTION"><a id="_description"></a><h2>DESCRIPTION</h2><p><span class="strong"><strong>Ansible playbooks</strong></span> are a configuration and multinode deployment system. Ansible-playbook is the tool
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>ansible-playbook</title><link rel="stylesheet" href="./docbook-xsl.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /></head><body><div xml:lang="en" class="refentry" title="ansible-playbook" lang="en"><a id="id458439"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ansible-playbook — run an ansible playbook</p></div><div class="refsynopsisdiv" title="Synopsis"><a id="_synopsis"></a><h2>Synopsis</h2><p>ansible-playbook <filename.yml> … [options]</p></div><div class="refsect1" title="DESCRIPTION"><a id="_description"></a><h2>DESCRIPTION</h2><p><span class="strong"><strong>Ansible playbooks</strong></span> are a configuration and multinode deployment system. Ansible-playbook is the tool
|
||||||
used to run them. See the project home page (link below) for more information.</p></div><div class="refsect1" title="ARGUMENTS"><a id="_arguments"></a><h2>ARGUMENTS</h2><div class="variablelist"><dl><dt><span class="term">
|
used to run them. See the project home page (link below) for more information.</p></div><div class="refsect1" title="ARGUMENTS"><a id="_arguments"></a><h2>ARGUMENTS</h2><div class="variablelist"><dl><dt><span class="term">
|
||||||
<span class="strong"><strong>filename.yml</strong></span>
|
<span class="strong"><strong>filename.yml</strong></span>
|
||||||
</span></dt><dd>
|
</span></dt><dd>
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>ansible</title><link rel="stylesheet" href="./docbook-xsl.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /></head><body><div xml:lang="en" class="refentry" title="ansible" lang="en"><a id="id394199"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ansible — run a command somewhere else</p></div><div class="refsynopsisdiv" title="Synopsis"><a id="_synopsis"></a><h2>Synopsis</h2><p>ansible <host-pattern> [-f forks] [-m module_name] [-a args]</p></div><div class="refsect1" title="DESCRIPTION"><a id="_description"></a><h2>DESCRIPTION</h2><p><span class="strong"><strong>Ansible</strong></span> is an extra-simple tool/framework/API for doing 'remote things' over
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>ansible</title><link rel="stylesheet" href="./docbook-xsl.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /></head><body><div xml:lang="en" class="refentry" title="ansible" lang="en"><a id="id580533"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ansible — run a command somewhere else</p></div><div class="refsynopsisdiv" title="Synopsis"><a id="_synopsis"></a><h2>Synopsis</h2><p>ansible <host-pattern> [-f forks] [-m module_name] [-a args]</p></div><div class="refsect1" title="DESCRIPTION"><a id="_description"></a><h2>DESCRIPTION</h2><p><span class="strong"><strong>Ansible</strong></span> is an extra-simple tool/framework/API for doing 'remote things' over
|
||||||
SSH.</p></div><div class="refsect1" title="ARGUMENTS"><a id="_arguments"></a><h2>ARGUMENTS</h2><div class="variablelist"><dl><dt><span class="term">
|
SSH.</p></div><div class="refsect1" title="ARGUMENTS"><a id="_arguments"></a><h2>ARGUMENTS</h2><div class="variablelist"><dl><dt><span class="term">
|
||||||
<span class="strong"><strong>host-pattern</strong></span>
|
<span class="strong"><strong>host-pattern</strong></span>
|
||||||
</span></dt><dd>
|
</span></dt><dd>
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |