2012-03-10 04:14:31 +01:00
< !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" / >
2012-05-13 17:56:09 +02:00
< title > FAQ — Ansible - SSH-Based Configuration Management & Deployment< / title >
2012-03-10 04:14:31 +01:00
< 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: '',
2012-03-13 00:13:19 +01:00
VERSION: '0.01',
2012-03-10 04:14:31 +01:00
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 >
2012-04-01 04:44:02 +02:00
< link rel = "shortcut icon" href = "_static/favicon.ico" / >
2012-03-13 00:13:19 +01:00
< link rel = "top" title = "Ansible - SSH-Based Configuration Management & Deployment" href = "index.html" / >
2012-08-15 04:07:00 +02:00
< link rel = "next" title = "Who Uses Ansible" href = "who_uses_ansible.html" / >
2012-05-13 17:00:02 +02:00
< link rel = "prev" title = "Module Development" href = "moduledev.html" / >
2012-03-10 04:14:31 +01:00
< 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();
});
}());
2012-03-10 04:31:54 +01:00
< / script >
2012-04-28 16:46:09 +02:00
2012-03-10 04:31:54 +01:00
< 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);
})();
2012-03-10 04:14:31 +01:00
< / script >
2012-04-28 16:46:09 +02:00
< script type = "text/javascript" >
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
< / script >
2012-04-28 16:42:32 +02:00
< script > ( f u n c t i o n ( d , s , i d ) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));< / script >
2012-03-10 04:14:31 +01:00
< / head >
< body >
< div class = "topbar" data-scrollspy = "scrollspy" >
< div class = "topbar-inner" >
< div class = "container" >
2012-04-18 02:47:29 +02:00
<!-- <a class="brand" href="index.html">Ansible</a> -->
2012-03-10 04:14:31 +01:00
< ul class = "nav" >
< li class = "dropdown" data-dropdown = "dropdown" >
< a href = "index.html"
2012-03-31 15:29:31 +02:00
class="dropdown-toggle">Chapter< / a >
2012-03-10 04:14:31 +01:00
< span class = "globaltoc" > < ul class = "current" >
2012-05-13 17:00:02 +02:00
< li class = "toctree-l1" > < a class = "reference internal" href = "gettingstarted.html" > Getting Started< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "patterns.html" > Inventory & Patterns< / a > < / li >
2012-08-17 03:12:36 +02:00
< li class = "toctree-l1" > < a class = "reference internal" href = "examples.html" > Command Line Examples And Next Steps< / a > < / li >
2012-03-10 04:14:31 +01:00
< li class = "toctree-l1" > < a class = "reference internal" href = "modules.html" > Ansible Modules< / a > < / li >
2012-03-11 20:34:21 +01:00
< li class = "toctree-l1" > < a class = "reference internal" href = "YAMLSyntax.html" > YAML Syntax< / a > < / li >
2012-03-10 04:14:31 +01:00
< li class = "toctree-l1" > < a class = "reference internal" href = "playbooks.html" > Playbooks< / a > < / li >
2012-05-13 17:00:02 +02:00
< li class = "toctree-l1" > < a class = "reference internal" href = "playbooks2.html" > Advanced Playbooks< / a > < / li >
2012-05-13 17:56:09 +02:00
< li class = "toctree-l1" > < a class = "reference internal" href = "bestpractices.html" > Best Practices< / a > < / li >
2012-03-31 04:28:30 +02:00
< li class = "toctree-l1" > < a class = "reference internal" href = "api.html" > API & Integrations< / a > < / li >
2012-05-13 17:00:02 +02:00
< li class = "toctree-l1" > < a class = "reference internal" href = "moduledev.html" > Module Development< / a > < / li >
2012-05-13 17:56:09 +02:00
< li class = "toctree-l1 current" > < a class = "current reference internal" href = "" > FAQ< / a > < / li >
2012-07-26 05:33:32 +02:00
< li class = "toctree-l1" > < a class = "reference internal" href = "who_uses_ansible.html" > Who Uses Ansible< / a > < / li >
2012-03-10 04:14:31 +01:00
< / ul >
< / span >
2012-03-31 15:36:37 +02:00
< / li >
< li class = "dropdown" data-dropdown = "dropdown" >
< a href = "#"
class="dropdown-toggle">Page< / a >
< span class = "localtoc" > < ul >
2012-05-13 17:56:09 +02:00
< li > < a class = "reference internal" href = "#" > FAQ< / a > < ul >
2012-08-02 03:03:14 +02:00
< li > < a class = "reference internal" href = "#why-is-it-called-ansible" > Why Is It Called Ansible?< / a > < / li >
2012-03-31 15:36:37 +02:00
< li > < a class = "reference internal" href = "#what-inspired-ansible" > What inspired Ansible?< / a > < / li >
< li > < a class = "reference internal" href = "#comparisons" > Comparisons< / a > < ul >
< li > < a class = "reference internal" href = "#vs-func" > vs Func?< / a > < / li >
< li > < a class = "reference internal" href = "#vs-puppet" > vs Puppet?< / a > < / li >
< li > < a class = "reference internal" href = "#vs-chef" > vs Chef?< / a > < / li >
< li > < a class = "reference internal" href = "#vs-capistrano-fabric" > vs Capistrano/Fabric?< / a > < / li >
< / ul >
< / li >
< li > < a class = "reference internal" href = "#other-questions" > Other Questions< / a > < ul >
2012-04-14 14:45:27 +02:00
< li > < a class = "reference internal" href = "#what-is-ansible-s-approach-to-security" > What is Ansible’ s approach to security?< / a > < / li >
2012-03-31 15:36:37 +02:00
< li > < a class = "reference internal" href = "#how-does-ansible-scale" > How does Ansible scale?< / a > < / li >
< li > < a class = "reference internal" href = "#are-transports-other-than-ssh-supported" > Are transports other than SSH supported?< / a > < / li >
< li > < a class = "reference internal" href = "#what-are-some-ideal-uses-for-ansible" > What are some ideal uses for Ansible?< / a > < / li >
< / ul >
< / li >
< / ul >
< / li >
< / ul >
< / span >
2012-03-10 04:14:31 +01:00
< / 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 >
2012-04-28 17:20:38 +02:00
< a href = "http://github.com/ansible/ansible" > < img style = "position: absolute; right: 0; border: 0;" src = "http://ansible.github.com/github.png" alt = "Fork me on GitHub" > < / a >
2012-03-10 04:14:31 +01:00
2012-03-10 16:39:34 +01:00
2012-03-10 04:14:31 +01:00
< div class = "container" >
2012-04-19 15:24:45 +02:00
< a href = "http://ansible.github.com" > < img src = "http://ansible.github.com/ansible-logo.png" alt = "Ansible" / > < / a > < br / >
2012-04-28 16:42:32 +02:00
< br / >
2012-03-10 04:14:31 +01:00
2012-05-13 17:56:09 +02:00
< div class = "section" id = "faq" >
2012-08-29 02:48:25 +02:00
< h1 > < a class = "toc-backref" href = "#contents" > FAQ< / a > < a class = "headerlink" href = "#faq" title = "Permalink to this headline" > ¶< / a > < / h1 >
< div class = "contents topic" id = "contents" >
< p class = "topic-title first" > Contents< / p >
< ul class = "simple" >
< li > < a class = "reference internal" href = "#faq" id = "id1" > FAQ< / a > < ul >
< li > < a class = "reference internal" href = "#why-is-it-called-ansible" id = "id2" > Why Is It Called Ansible?< / a > < / li >
< li > < a class = "reference internal" href = "#what-inspired-ansible" id = "id3" > What inspired Ansible?< / a > < / li >
< li > < a class = "reference internal" href = "#comparisons" id = "id4" > Comparisons< / a > < ul >
< li > < a class = "reference internal" href = "#vs-func" id = "id5" > vs Func?< / a > < / li >
< li > < a class = "reference internal" href = "#vs-puppet" id = "id6" > vs Puppet?< / a > < / li >
< li > < a class = "reference internal" href = "#vs-chef" id = "id7" > vs Chef?< / a > < / li >
< li > < a class = "reference internal" href = "#vs-capistrano-fabric" id = "id8" > vs Capistrano/Fabric?< / a > < / li >
< / ul >
< / li >
< li > < a class = "reference internal" href = "#other-questions" id = "id9" > Other Questions< / a > < ul >
< li > < a class = "reference internal" href = "#what-is-ansible-s-approach-to-security" id = "id10" > What is Ansible’ s approach to security?< / a > < / li >
< li > < a class = "reference internal" href = "#how-does-ansible-scale" id = "id11" > How does Ansible scale?< / a > < / li >
< li > < a class = "reference internal" href = "#are-transports-other-than-ssh-supported" id = "id12" > Are transports other than SSH supported?< / a > < / li >
< li > < a class = "reference internal" href = "#what-are-some-ideal-uses-for-ansible" id = "id13" > What are some ideal uses for Ansible?< / a > < / li >
< / ul >
< / li >
< / ul >
< / li >
< / ul >
< / div >
2012-08-02 03:03:14 +02:00
< div class = "section" id = "why-is-it-called-ansible" >
2012-08-29 02:48:25 +02:00
< h2 > < a class = "toc-backref" href = "#contents" > Why Is It Called Ansible?< / a > < a class = "headerlink" href = "#why-is-it-called-ansible" title = "Permalink to this headline" > ¶< / a > < / h2 >
2012-08-02 03:03:14 +02:00
< p > One of my favorite books is Orson Scott Card’ s “ Ender’ s Game” . In the book, the Ansible is a method of instantaneous
long distance “ hyperspace” communication with a large number of space ships. You should read it!< / p >
< / div >
2012-03-10 04:14:31 +01:00
< div class = "section" id = "what-inspired-ansible" >
2012-08-29 02:48:25 +02:00
< h2 > < a class = "toc-backref" href = "#contents" > What inspired Ansible?< / a > < a class = "headerlink" href = "#what-inspired-ansible" title = "Permalink to this headline" > ¶< / a > < / h2 >
2012-03-10 04:14:31 +01:00
< p > Back when I worked for Red Hat and working on < a class = "reference external" href = "http://cobbler.github.com/" > Cobbler< / a > , several of us identified a gap between
provisioning (Cobbler) and configuration management solutions (cfengine, Puppet, etc).
There was a need for a way to do ad-hoc tasks efficiently, and various parallel
SSH scripts were not API based enough for us. So we (Adrian Likins, Seth Vidal, and I)
created < a class = "reference external" href = "http://fedorahosted.org/func" > Func< / a > – a secure distributed command framework.< / p >
< p > I always wanted to have a configuration management system built on Func, but never
built it due to needing to spend time on Cobbler and other projects.
In the meantime, a John Eckersberg developed Taboot,
a deployment framework of sorts that sat on top of Func, using a YAML syntax very
much like what Ansible now has in < a class = "reference internal" href = "playbooks.html" > < em > Playbooks< / em > < / a > .< / p >
< p > After trying to get Func running again recently at a new company, I got tired
of some SSL and DNS issues and decided to create something a bit simpler, taking
all of the good ideas from Func, and merging them with experience I learned from
working at Puppet Labs. I wanted something that was easy to pick up and was installable
without any bootstrapping, and didn’ t suffer from the “ I don’ t want to learn X” mentality
that often impacted adoption of tools like Puppet and Chef among certain ops teams.< / p >
< p > I also spent some time working with a couple of sites that needed to do large webapp deployments,
and noticed how complex various configuration management and deployment tools were to these
companies, compared with what they actually needed. Release processes were too complex
and needed something simple to straighten them out – but I really didn’ t want to train
all the dev(ops) on Puppet or Chef, and they really didn’ t want to learn them either.< / p >
< p > I kept thinking, is there a reason for these programs to be so large and complicated?
Well, systems management is a little complicated, but no. Not really.< / p >
< p > Can I build something that a sysadmin can
figure out in 15 minutes and get going, and then extend in any language he knows?
That’ s how Ansible was born. It sheds ‘ best practices’ for ‘ you know your infrastructure
best’ , and distills all of the ideas behind all of these other tools to the core.< / p >
< p > Not only is Ansible very simple and easy to learn/extend, it’ s configuration management, deployment, and ad-hoc tasks all in one app. And I think that makes it pretty powerful. It hasn’ t really been done before.< / p >
< p > I’ d like to know what you think of it. Hop by the mailing list and say hi.< / p >
< / div >
< div class = "section" id = "comparisons" >
2012-08-29 02:48:25 +02:00
< h2 > < a class = "toc-backref" href = "#contents" > Comparisons< / a > < a class = "headerlink" href = "#comparisons" title = "Permalink to this headline" > ¶< / a > < / h2 >
2012-03-10 04:14:31 +01:00
< div class = "section" id = "vs-func" >
2012-08-29 02:48:25 +02:00
< h3 > < a class = "toc-backref" href = "#contents" > vs Func?< / a > < a class = "headerlink" href = "#vs-func" title = "Permalink to this headline" > ¶< / a > < / h3 >
2012-03-10 04:14:31 +01:00
< p > Ansible uses SSH by default instead of SSL and custom daemons, and requires
no extra software to run on managed machines. You can also write modules
in any language as long as they return JSON. Ansible’ s API, of course, is
2012-07-04 23:47:04 +02:00
heavily inspired by Func. Ansible also adds
2012-03-10 04:14:31 +01:00
a configuration management and multinode orchestration layer (< a class = "reference internal" href = "playbooks.html" > < em > Playbooks< / em > < / a > )
that Func didn’ t have.< / p >
< / div >
< div class = "section" id = "vs-puppet" >
2012-08-29 02:48:25 +02:00
< h3 > < a class = "toc-backref" href = "#contents" > vs Puppet?< / a > < a class = "headerlink" href = "#vs-puppet" title = "Permalink to this headline" > ¶< / a > < / h3 >
2012-03-10 04:14:31 +01:00
< p > First off, Ansible wouldn’ t have happened without Puppet. Puppet took configuration
management ideas from cfengine and made them sane. However, I still think they can
2012-04-18 02:54:01 +02:00
be much simpler.< / p >
2012-03-10 04:14:31 +01:00
< p > Ansible playbooks ARE a complete configuration management system. Unlike Puppet, playbooks
are implicitly ordered (more like Chef), but still retain the ability to signal
notification events (like Puppet). This is kind of a ‘ best of both worlds’ thing.< / p >
2012-04-18 02:54:01 +02:00
< p > There is no central server subject to thundering herd problems, and Ansible is
2012-03-10 04:14:31 +01:00
also designed with multi-node deployment in mind from day-one – something that is difficult
for Puppet because of the pull architecture. Ansible is push based,
so you can do things in an ordered fashion, addressing batches of servers
2012-07-04 23:47:04 +02:00
at one time, and you do not have to contend with the dependency graph. It’ s also extensible in any language
2012-03-10 04:14:31 +01:00
and the source is designed so that you don’ t have to be an expert programmer to submit a patch.< / p >
< p > Ansible’ s resources are heavily inspired by Puppet, with the “ state” keyword being a more or less
direct port of “ ensure” from Puppet. Unlike Puppet, Ansible can be extended in any language,
even bash ... just return some output in JSON format. You don’ t need to know Ruby.< / p >
< p > Unlike Puppet, hosts are taken out of playbooks when they have a failure. It encourages
‘ fail first’ , so you can correct the error, instead of configuring as much of the system
as it can. A system shouldn’ t be half correct, especially if we’ re planning on configuring
other systems that depend on that system.< / p >
< p > Ansible also has a VERY short learning curve – but it also has less language constructs and
2012-04-13 04:47:15 +02:00
does not create its own programming language. What constructs Ansible does have should be enough to cover 80% or so of the cases of most Puppet users, and it should scale equally well (not having a server is
2012-03-10 04:14:31 +01:00
almost like cheating).< / p >
< p > Ansible does support gathering variables from ‘ facter’ , if installed, and Ansible templates
2012-04-26 04:46:00 +02:00
in jinja2 in a way just like Puppet does with erb. Ansible also has it’ s own facts though,
so usage of facter is not required to get variables about the system.< / p >
2012-03-10 04:14:31 +01:00
< / div >
< div class = "section" id = "vs-chef" >
2012-08-29 02:48:25 +02:00
< h3 > < a class = "toc-backref" href = "#contents" > vs Chef?< / a > < a class = "headerlink" href = "#vs-chef" title = "Permalink to this headline" > ¶< / a > < / h3 >
2012-03-10 04:14:31 +01:00
< p > Much in the ways Ansible is different from Puppet. Chef is notoriously hard
to set up on the server, and requires that you know how to program in Ruby to
use the language. As such, it seems to have a pretty good following mainly
among Rails coders.< / p >
< p > Like Chef (and unlike Puppet), Ansible executes configuration tasks in the order
given, rather than having to manually specify a dependency graph. Ansible extends
this though, by allowing triggered notifiers, so Apache can, be restarted if needed,
only once, at the end of a configuration run.< / p >
< p > Unlike Chef, Ansible’ s playbooks are not a programming language. This means
that you can parse Ansible’ s playbooks and treat the instructions as data. It also
means working on your infrastructure is not a development task and testing is easier.< / p >
< p > Ansible can be used regardless of your programming language experience. Both
Chef and Puppet are around 60k+ lines of code, while Ansible is a much simpler
program. I believe this strongly leads to more reliable software and a richer
open source community – the code is kept simple so it is easy for anyone to
submit a patch or module.< / p >
2012-04-26 04:46:00 +02:00
< p > Ansible does support gathering variables from ‘ ohai’ , if installed. Ansible also
has it’ s own facts so you do not need to use ohai unless you want to.< / p >
2012-03-10 04:14:31 +01:00
< / div >
< div class = "section" id = "vs-capistrano-fabric" >
2012-08-29 02:48:25 +02:00
< h3 > < a class = "toc-backref" href = "#contents" > vs Capistrano/Fabric?< / a > < a class = "headerlink" href = "#vs-capistrano-fabric" title = "Permalink to this headline" > ¶< / a > < / h3 >
2012-03-10 04:14:31 +01:00
< p > These tools aren’ t really well suited to doing idempotent configuration and are
typically about pushing software out for web deployment and automating steps.< / p >
< p > Meanwhile Ansible is designed for other types of configuration management, and contains some
advanced scaling features.< / p >
2012-04-18 02:54:01 +02:00
< p > The ansible playbook syntax is documented within one HTML page and also has a MUCH lower learning curve.
And because Ansible is designed for more than pushing webapps, it’ s more generally
2012-03-10 04:14:31 +01:00
useful for sysadmins (not just web developers), and can also be used for firing off ad-hoc tasks.< / p >
< / div >
< / div >
< div class = "section" id = "other-questions" >
2012-08-29 02:48:25 +02:00
< h2 > < a class = "toc-backref" href = "#contents" > Other Questions< / a > < a class = "headerlink" href = "#other-questions" title = "Permalink to this headline" > ¶< / a > < / h2 >
2012-04-14 14:45:27 +02:00
< div class = "section" id = "what-is-ansible-s-approach-to-security" >
2012-08-29 02:48:25 +02:00
< h3 > < a class = "toc-backref" href = "#contents" > What is Ansible’ s approach to security?< / a > < a class = "headerlink" href = "#what-is-ansible-s-approach-to-security" title = "Permalink to this headline" > ¶< / a > < / h3 >
2012-04-18 02:54:01 +02:00
< p > Ansible aims to not develop custom daemon or PKI code but rely heavily on OpenSSH, which is extremely well
2012-04-14 14:45:27 +02:00
peer reviewed and the most widely used security subsystem in the industry. As a result, Ansible
has a lower attack surface than any configuration management tool featuring daemons that run
as root, and you do not have to worry about network security vulnerabilities in the tool itself.< / p >
< p > If your central server is taken over (or even logged into by a malicious employee),
provided you were using SSH-agent and encrypted keys (and/or sudo with a password),
your keys are still locked and no one can take control of your nodes.< / p >
< p > Compared with something like Chef/Puppet/other, compromised manifests would lead
to a loss of the whole network, with your network turning into an easily controllable
botnet. Further by not running daemon infrastructure, you have more
free RAM and compute resources, which should be relevant to users wanting to maximize their
computing investments.< / p >
< / div >
2012-03-10 04:14:31 +01:00
< div class = "section" id = "how-does-ansible-scale" >
2012-08-29 02:48:25 +02:00
< h3 > < a class = "toc-backref" href = "#contents" > How does Ansible scale?< / a > < a class = "headerlink" href = "#how-does-ansible-scale" title = "Permalink to this headline" > ¶< / a > < / h3 >
2012-03-10 04:14:31 +01:00
< p > Whether in single-execution mode or using ansible playbooks, ansible can
2012-05-13 17:56:09 +02:00
run multiple commands in seperate parallel forks, thanks to the magic behind
2012-03-10 04:14:31 +01:00
Python’ s multiprocessing module.< / p >
2012-05-13 17:56:09 +02:00
< p > You can decide if you want to try to manage 5 hosts at a time, or 50 at a time.
It’ s up to you and how much power you can throw at it and how fast you want
to go.< / p >
2012-03-10 04:14:31 +01:00
< p > There are no daemons so it’ s entirely up to you. When you are aren’ t using
2012-05-13 17:56:09 +02:00
Ansible, it is not consuming any resources, and you don’ t have to contend
with a herd of machines all knocking at the door of your management server
all at once.< / p >
2012-07-04 23:47:04 +02:00
< p > The SSH connection type (paramiko is the default, binary openssh is an option)
can also make use of “ ControlMaster” features in SSH, which reuses network
connections.< / p >
2012-03-10 04:14:31 +01:00
< p > If you have 10,000 systems, running a single ansible playbook against all of
2012-07-04 23:47:04 +02:00
them probably isn’ t appropriate, which is why ansible-pull exists. This tool
is designed for running out of git and cron, and can scale to any
2012-05-13 17:56:09 +02:00
number of hosts. Ansible-pull uses local connections versus SSH, but can be
easily bootstrapped or reconfigured just using SSH. There is more information
2012-05-20 02:57:34 +02:00
available about this in the < a class = "reference internal" href = "playbooks2.html" > < em > Advanced Playbooks< / em > < / a > section. The self-bootstrapping
2012-05-13 17:56:09 +02:00
and ease of use are ansible are still retained, even when switching to the pull
model.< / p >
< p > If you’ d like to discuss scaling strategies further, please hop on the mailing list.< / p >
2012-03-10 04:14:31 +01:00
< / div >
< div class = "section" id = "are-transports-other-than-ssh-supported" >
2012-08-29 02:48:25 +02:00
< h3 > < a class = "toc-backref" href = "#contents" > Are transports other than SSH supported?< / a > < a class = "headerlink" href = "#are-transports-other-than-ssh-supported" title = "Permalink to this headline" > ¶< / a > < / h3 >
2012-07-04 23:47:04 +02:00
< p > Currently SSH (you can choose between paramiko or the openssh binaries)
and local connections are supported. The interface is actually pluggable so a
2012-05-13 17:56:09 +02:00
small patch could bring transport over message bus or XMPP as an option.< / p >
< p > Stop by the mailing list if you have ideas. The connection-specific parts of Ansible
2012-04-18 02:54:01 +02:00
are all abstracted away from the core implementation so it is very easy to extend.< / p >
2012-03-10 04:14:31 +01:00
< / div >
< div class = "section" id = "what-are-some-ideal-uses-for-ansible" >
2012-08-29 02:48:25 +02:00
< h3 > < a class = "toc-backref" href = "#contents" > What are some ideal uses for Ansible?< / a > < a class = "headerlink" href = "#what-are-some-ideal-uses-for-ansible" title = "Permalink to this headline" > ¶< / a > < / h3 >
2012-03-10 04:14:31 +01:00
< p > One of the best use cases? Complex multi-node cloud deployments using playbooks. Another good
example is for configuration management where you
are starting from a clean OS with no extra software installed, adopting systems
that are already deployed.< / p >
2012-03-13 04:12:21 +01:00
< p > Ansible is also great for running ad-hoc tasks across a wide variety of Linux, Unix, and BSDs.
2012-03-10 04:14:31 +01:00
Because it just uses the basic tools available on the system, it is exceptionally cross platform
without needing to install management packages on each node.< / p >
< p > It also excels for writing distributed
scripts and ad-hoc applications that need to gather data or perform arbitrary
tasks – whether for a QA sytem, build system, or anything you can think of.< / p >
2012-03-11 20:34:21 +01:00
< div class = "admonition-see-also admonition seealso" >
< p class = "first admonition-title" > See also< / p >
< dl class = "last docutils" >
2012-08-17 03:12:36 +02:00
< dt > < a class = "reference internal" href = "examples.html" > < em > Command Line Examples And Next Steps< / em > < / a > < / dt >
2012-03-11 20:34:21 +01:00
< dd > Examples of basic commands< / dd >
< dt > < a class = "reference internal" href = "playbooks.html" > < em > Playbooks< / em > < / a > < / dt >
< dd > Learning ansible’ s configuration management language< / dd >
2012-03-31 15:55:37 +02:00
< dt > < a class = "reference external" href = "http://groups.google.com/group/ansible-project" > Mailing List< / a > < / dt >
< dd > Questions? Help? Ideas? Stop by the list on Google Groups< / dd >
< dt > < a class = "reference external" href = "http://irc.freenode.net" > irc.freenode.net< / a > < / dt >
< dd > #ansible IRC chat channel< / dd >
2012-03-11 20:34:21 +01:00
< / dl >
< / div >
2012-03-10 04:14:31 +01:00
< / div >
< / div >
< / div >
2012-04-28 16:42:32 +02:00
< br / >
2012-03-10 04:14:31 +01:00
< / div >
2012-04-28 16:53:15 +02:00
< footer class = "footer" >
< div class = "container" >
< div id = "fb-root" > < / div >
2012-04-28 16:50:20 +02:00
< p >
2012-07-31 02:08:13 +02:00
< form action = "https://www.paypal.com/cgi-bin/webscr" method = "post" >
< input type = "hidden" name = "cmd" value = "_donations" >
< input type = "hidden" name = "business" value = "michael.dehaan@gmail.com" >
< input type = "hidden" name = "lc" value = "US" >
< input type = "hidden" name = "item_name" value = "Ansible" >
< input type = "hidden" name = "no_note" value = "0" >
< input type = "hidden" name = "currency_code" value = "USD" >
< input type = "hidden" name = "bn" value = "PP-DonationsBF:btn_donate_LG.gif:NonHostedGuest" >
< input type = "image" src = "https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border = "0" name = "submit" alt = "PayPal - The safer, easier way to pay online!" >
< img alt = "" border = "0" src = "https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width = "1" height = "1" >
< / form >
< / p >
< p >
2012-04-28 16:42:32 +02:00
< a href = "https://twitter.com/share" class = "twitter-share-button" data-text = "ansible.github.com" > Share On Twitter< / a >
< script > ! function ( d , s , id ) { var js , fjs = d . getElementsByTagName ( s ) [ 0 ] ; if ( ! d . getElementById ( id ) ) { js = d . createElement ( s ) ; js . id = id ; js . src = "//platform.twitter.com/widgets.js" ; fjs . parentNode . insertBefore ( js , fjs ) ; } } ( document , "script" , "twitter-wjs" ) ; < / script >
< g:plusone annotation = "inline" > < / g:plusone >
< div class = "fb-like" data-href = "http://ansible.github.com" data-send = "true" data-width = "450" data-show-faces = "false" > < / div >
2012-04-28 16:50:20 +02:00
< / p >
< p >
2012-03-10 04:14:31 +01:00
© Copyright 2012 Michael DeHaan.< br / >
2012-08-28 13:39:55 +02:00
Last updated on Aug 28, 2012.< br / >
2012-03-10 04:14:31 +01:00
< / p >
< / div >
< / footer >
< / body >
< / html >