diff --git a/Makefile b/Makefile
index 4a7fb546db6..6d10bca7fe6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
#!/usr/bin/make
-ASCII2HTMLMAN = a2x -D html/man/ -d manpage -f xhtml
+ASCII2HTMLMAN = a2x -D man/ -d manpage -f xhtml
SITELIB = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
all: clean docs
@@ -11,7 +11,7 @@ viewdocs: clean
./build-site.py view
htmlman:
- mkdir -p html/man
+ mkdir -p man
$(ASCII2HTMLMAN) ansible/docs/man/man1/ansible.1.asciidoc
$(ASCII2HTMLMAN) ansible/docs/man/man1/ansible-playbook.1.asciidoc
diff --git a/html/YAMLScripts.html b/YAMLScripts.html
similarity index 100%
rename from html/YAMLScripts.html
rename to YAMLScripts.html
diff --git a/html/_static/basic.css b/_static/basic.css
similarity index 100%
rename from html/_static/basic.css
rename to _static/basic.css
diff --git a/html/_static/bootstrap-dropdown.js b/_static/bootstrap-dropdown.js
similarity index 100%
rename from html/_static/bootstrap-dropdown.js
rename to _static/bootstrap-dropdown.js
diff --git a/html/_static/bootstrap-scrollspy.js b/_static/bootstrap-scrollspy.js
similarity index 100%
rename from html/_static/bootstrap-scrollspy.js
rename to _static/bootstrap-scrollspy.js
diff --git a/html/_static/bootstrap-sphinx.css b/_static/bootstrap-sphinx.css
similarity index 100%
rename from html/_static/bootstrap-sphinx.css
rename to _static/bootstrap-sphinx.css
diff --git a/html/_static/bootstrap.css b/_static/bootstrap.css
similarity index 100%
rename from html/_static/bootstrap.css
rename to _static/bootstrap.css
diff --git a/html/_static/default.css b/_static/default.css
similarity index 100%
rename from html/_static/default.css
rename to _static/default.css
diff --git a/html/_static/doctools.js b/_static/doctools.js
similarity index 100%
rename from html/_static/doctools.js
rename to _static/doctools.js
diff --git a/html/_static/file.png b/_static/file.png
similarity index 100%
rename from html/_static/file.png
rename to _static/file.png
diff --git a/html/_static/jquery.js b/_static/jquery.js
similarity index 100%
rename from html/_static/jquery.js
rename to _static/jquery.js
diff --git a/html/_static/minus.png b/_static/minus.png
similarity index 100%
rename from html/_static/minus.png
rename to _static/minus.png
diff --git a/html/_static/plus.png b/_static/plus.png
similarity index 100%
rename from html/_static/plus.png
rename to _static/plus.png
diff --git a/html/_static/pygments.css b/_static/pygments.css
similarity index 100%
rename from html/_static/pygments.css
rename to _static/pygments.css
diff --git a/html/_static/searchtools.js b/_static/searchtools.js
similarity index 100%
rename from html/_static/searchtools.js
rename to _static/searchtools.js
diff --git a/html/_static/sidebar.js b/_static/sidebar.js
similarity index 100%
rename from html/_static/sidebar.js
rename to _static/sidebar.js
diff --git a/html/_static/underscore.js b/_static/underscore.js
similarity index 100%
rename from html/_static/underscore.js
rename to _static/underscore.js
diff --git a/html/ansible_arch.jpg b/ansible_arch.jpg
similarity index 100%
rename from html/ansible_arch.jpg
rename to ansible_arch.jpg
diff --git a/html/api.html b/api.html
similarity index 100%
rename from html/api.html
rename to api.html
diff --git a/build-site.py b/build-site.py
index 5570818ccfb..db88618fc5b 100755
--- a/build-site.py
+++ b/build-site.py
@@ -22,7 +22,7 @@ import os
import sys
import traceback
from sphinx.application import Sphinx
-from os import path
+import os
class SphinxBuilder(object):
@@ -39,15 +39,15 @@ class SphinxBuilder(object):
try:
buildername = 'html'
- outdir = path.abspath(path.join('html'))
+ outdir = os.path.abspath(os.getcwd())
# Create the output directory if it doesn't exist
if not os.access(outdir, os.F_OK):
os.mkdir(outdir)
doctreedir = os.path.join('./', '.doctrees')
- confdir = path.abspath('./')
- srcdir = path.abspath('rst')
+ confdir = os.path.abspath('./')
+ srcdir = os.path.abspath('rst')
freshenv = False
# Create the builder
diff --git a/html/examples.html b/examples.html
similarity index 100%
rename from html/examples.html
rename to examples.html
diff --git a/html/faq.html b/faq.html
similarity index 100%
rename from html/faq.html
rename to faq.html
diff --git a/html/genindex.html b/genindex.html
similarity index 100%
rename from html/genindex.html
rename to genindex.html
diff --git a/html/gettingstarted.html b/gettingstarted.html
similarity index 100%
rename from html/gettingstarted.html
rename to gettingstarted.html
diff --git a/html/.buildinfo b/html/.buildinfo
deleted file mode 100644
index 0885fbe1fb7..00000000000
--- a/html/.buildinfo
+++ /dev/null
@@ -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:
diff --git a/html/_sources/YAMLScripts.txt b/html/_sources/YAMLScripts.txt
deleted file mode 100644
index 08055ff497c..00000000000
--- a/html/_sources/YAMLScripts.txt
+++ /dev/null
@@ -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 `_
- YAML Lint gets the lint out of your YAML
diff --git a/html/_sources/api.txt b/html/_sources/api.txt
deleted file mode 100644
index 7eb71cf1f96..00000000000
--- a/html/_sources/api.txt
+++ /dev/null
@@ -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``.
-
-
diff --git a/html/_sources/communicate.txt b/html/_sources/communicate.txt
deleted file mode 100644
index cd718ddcbfb..00000000000
--- a/html/_sources/communicate.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-Communicate and Get Involved
-===========================
-
-* Join the `ansible-project mailing list `_ on Google Groups
-* Join `#ansible `_ on the `freenode IRC network `_
-* Visit the `project page `_ on Github
-
- - View the `issue tracker `_
-
diff --git a/html/_sources/examples.txt b/html/_sources/examples.txt
deleted file mode 100644
index 4adeeed94db..00000000000
--- a/html/_sources/examples.txt
+++ /dev/null
@@ -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.
-
-
diff --git a/html/_sources/gettingstarted.txt b/html/_sources/gettingstarted.txt
deleted file mode 100644
index 6bbb3177243..00000000000
--- a/html/_sources/gettingstarted.txt
+++ /dev/null
@@ -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 `_
-
-* ``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 `_
-
-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!
-
diff --git a/html/_sources/index.txt b/html/_sources/index.txt
deleted file mode 100644
index 0c4288f030a..00000000000
--- a/html/_sources/index.txt
+++ /dev/null
@@ -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 `_ on Google Groups
-* Join `#ansible `_ on the `freenode IRC network `_
-* Visit the `project page `_ on Github
-
- - View the `issue tracker `_
-
-
-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.
-
diff --git a/html/_sources/man.txt b/html/_sources/man.txt
deleted file mode 100644
index 41dd4e650ee..00000000000
--- a/html/_sources/man.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-.. _man:
-
-Man Pages
-=========
-
-Ansible's manpage lists available command line options.
-
-ansible(1)
-----------
-
-* `View ansible.1 `_
-
diff --git a/html/_sources/modules.txt b/html/_sources/modules.txt
deleted file mode 100644
index 9b523341536..00000000000
--- a/html/_sources/modules.txt
+++ /dev/null
@@ -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.
-
-
diff --git a/html/_sources/patterns.txt b/html/_sources/patterns.txt
deleted file mode 100644
index 5b76289378a..00000000000
--- a/html/_sources/patterns.txt
+++ /dev/null
@@ -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.
-
-
diff --git a/html/_sources/playbooks.txt b/html/_sources/playbooks.txt
deleted file mode 100644
index 35b47362718..00000000000
--- a/html/_sources/playbooks.txt
+++ /dev/null
@@ -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
-
diff --git a/html/index.html b/html/index.html
deleted file mode 100644
index f61efb8ba49..00000000000
--- a/html/index.html
+++ /dev/null
@@ -1,349 +0,0 @@
-
-
-
-
-
-
-
- Introducing Ansible — Ansible v0.0.1 documentation
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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.
Ansible was originally developed by Michael DeHaan (@laserllama), 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. Reach Michael by email here.
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/html/man/ansible-modules.5.html b/html/man/ansible-modules.5.html
deleted file mode 100644
index 172b247bb84..00000000000
--- a/html/man/ansible-modules.5.html
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-ansible-modules
Name
ansible-modules — stock modules shipped with ansible
DESCRIPTION
Ansible ships with a number of modules that can be executed directly on remote hosts or through
-ansible playbooks.
IDEMPOTENCE
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, as described in ansible-playbooks(5).
Unless otherwise noted, all modules support change hooks.
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
-
This module does not support change hooks.
Returns the return code from the program as well as timing information.
(Async command running and command execution time limits are in plan.)
copy
The copy module moves a file on the local box to remote locations.
-src=
-
-Local absolute path to a file to copy to the remote server
-
-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.
file
Ensures the ownership and permissions of files are as desired.
Use copy or template first if you need to make sure a file is on the box.
In plan.
git
Deploys software 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.
ping
A trivial test module, this module always returns the integer 1 on
-successful contact.
This module does not support change hooks.
This module 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, usually as the very
-first step in your 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.
-metadata=
-
-Optionally overrides the default JSON file location of /etc/ansible/setup.
-If used, also supply the metadata parameter to template. Change if
-running as a non-root remote user who does not have permissions on /etc/ansible.
-
-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
-
-dest
-
-location to render the template on the remote server
-
-metadata
-
-location of a JSON file to use to supply template data. Default is /etc/ansible/setup
-which is the same as the default for the setup module. Change if running as a non-root
-remote user who does not have permissions on /etc/ansible.
-
This module also returns md5sum information about the resultant file.
user
This module is in plan.
yum
This module is in plan.
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.
-To support change hooks, modules should return hashes, with a changed: True/False
-element at the top level. Modules can also choose to indicate a failure scenario
-by returning a top level failure element with a True value.
ENVIRONMENT
ANSIBLE_LIBRARY — Override the default ansible module library path
AUTHOR
Ansible was originally written by Michael DeHaan. See the AUTHORS file
-for a complete list of contributors.
ansible-playbook — format and function of an ansible playbook file
DESCRIPTION
Ansible ships with ansible-playbook, a tool for running playbooks.
-Playbooks can represent frequent tasks, desired system configurations,
-or deployment processes.
The first pattern will select all hosts. The patterns are the same
-as supported by /usr/bin/ansible.
First, it will run all the modules specified in base.yml. Includes can
-be used to implement classes of things, and if you wanted, a playbook
-could consist of nothing but include files. This is an example of an
-include.
After processing base.yml, on each host we’ll write for
-a JSON file into /etc/ansible/setup on each remote system with the
-values max_clients and http_port.
Next, we’ll use a Jinja2 template locally residing at
-/srv/templates/httpd.j2 to write the Apache config file on each host,
-using the previous values in that setup file.
Next, We’ll ensure that apache is running if stopped.
The template task set up a notifier, which means if the configuration
-file actually changed, we have a named handler, in this case, restart apache
-to run. In this case, all the notifiers come from handlers.yml, though it’s
-also ok to express handlers directly in the main yaml file too. Using
-the include promotes reuse.
What does the handler say? If and only if the config file changed, note that we need to restart
-apache at the end of the run, otherwise, don’t bother because we
-already know it is running.
HIGH LEVEL EXPLANATION
Playbooks are executed top down and can contain multiple references to
-patterns. For instance, a playbook could do something to all
-webservers, then do something to all database servers, then do
-something different to all webservers again.
For each pattern, the tasks in the tasks list are executed in order
-for all hosts in the host file matching the pattern.
For each task, a name/action pair describes what the task is and what
-ansible module to use to accomplish the task, along with any
-arguments. Additional fields like comment: can be added and will
-be ignored, so feel free to take notes in the file.
Most modules accept key=value format arguments.
Handlers are like tasks, but are conditionally executed. If a module
-reports a change, it can notify one or more handler by name. If
-notified, it will run only for hosts that changed.
ERROR HANDLING
If a host has a failure, the host will be ignored for the remainder
-of the playbook execution.
ENVIRONMENT
ANSIBLE_LIBRARY — Override the default ansible module library path
AUTHOR
Ansible was originally written by Michael DeHaan. See the AUTHORS file
-for a complete list of contributors.
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.
Ansible was originally developed by Michael DeHaan (@laserllama), 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. Reach Michael by email here.
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/html/man.html b/man.html
similarity index 100%
rename from html/man.html
rename to man.html
diff --git a/html/man/ansible-playbook.1.html b/man/ansible-playbook.1.html
similarity index 98%
rename from html/man/ansible-playbook.1.html
rename to man/ansible-playbook.1.html
index 475aee74313..eb6760db9d1 100644
--- a/html/man/ansible-playbook.1.html
+++ b/man/ansible-playbook.1.html
@@ -1,6 +1,6 @@
-ansible-playbook
Name
ansible-playbook — run an ansible playbook
Synopsis
ansible-playbook <filename.yml> … [options]
DESCRIPTION
Ansible playbooks are a configuration and multinode deployment system. Ansible-playbook is the tool
+
ansible-playbook
Name
ansible-playbook — run an ansible playbook
Synopsis
ansible-playbook <filename.yml> … [options]
DESCRIPTION
Ansible playbooks 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.
ARGUMENTS
filename.yml
diff --git a/html/man/ansible.1.html b/man/ansible.1.html
similarity index 98%
rename from html/man/ansible.1.html
rename to man/ansible.1.html
index dec9a51e9f2..84d9a62e9f8 100644
--- a/html/man/ansible.1.html
+++ b/man/ansible.1.html
@@ -1,6 +1,6 @@
-ansible