Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
21381fc5
Commit
21381fc5
authored
12 years ago
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rebuild of everything already merged
parent
73f74168
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
33 additions
and
31 deletions
+33
-31
YAMLSyntax.html
+1
-1
api.html
+1
-1
bestpractices.html
+2
-2
examples.html
+1
-1
faq.html
+1
-1
genindex.html
+1
-1
gettingstarted.html
+1
-3
index.html
+1
-1
moduledev.html
+1
-1
modules.html
+1
-1
patterns.html
+17
-14
playbooks.html
+3
-2
playbooks2.html
+1
-1
search.html
+1
-1
searchindex.js
+0
-0
No files found.
YAMLSyntax.html
View file @
21381fc5
...
@@ -275,7 +275,7 @@ languages:
...
@@ -275,7 +275,7 @@ languages:
</p>
</p>
<p>
<p>
©
Copyright 2012 Michael DeHaan.
<br/>
©
Copyright 2012 Michael DeHaan.
<br/>
Last updated on
May
19, 2012.
<br/>
Last updated on
Jun
19, 2012.
<br/>
</p>
</p>
</div>
</div>
</footer>
</footer>
...
...
This diff is collapsed.
Click to expand it.
api.html
View file @
21381fc5
...
@@ -359,7 +359,7 @@ a conf.d file appropriately or something similar. Who knows?</p>
...
@@ -359,7 +359,7 @@ a conf.d file appropriately or something similar. Who knows?</p>
</p>
</p>
<p>
<p>
©
Copyright 2012 Michael DeHaan.
<br/>
©
Copyright 2012 Michael DeHaan.
<br/>
Last updated on
May
19, 2012.
<br/>
Last updated on
Jun
19, 2012.
<br/>
</p>
</p>
</div>
</div>
</footer>
</footer>
...
...
This diff is collapsed.
Click to expand it.
bestpractices.html
View file @
21381fc5
...
@@ -224,7 +224,7 @@ will require <cite>handlers</cite>, <cite>tasks</cite>, and <cite>templates</cit
...
@@ -224,7 +224,7 @@ will require <cite>handlers</cite>, <cite>tasks</cite>, and <cite>templates</cit
user: root
user: root
vars_files
vars_files
-
include:
vars/main.yml
- vars/main.yml
tasks:
tasks:
- include: tasks/setup.yml
- include: tasks/setup.yml
handlers:
handlers:
...
@@ -289,7 +289,7 @@ This way you have an audit trail describing when and why you changed the rules a
...
@@ -289,7 +289,7 @@ This way you have an audit trail describing when and why you changed the rules a
</p>
</p>
<p>
<p>
©
Copyright 2012 Michael DeHaan.
<br/>
©
Copyright 2012 Michael DeHaan.
<br/>
Last updated on
May
19, 2012.
<br/>
Last updated on
Jun
19, 2012.
<br/>
</p>
</p>
</div>
</div>
</footer>
</footer>
...
...
This diff is collapsed.
Click to expand it.
examples.html
View file @
21381fc5
...
@@ -382,7 +382,7 @@ a simplified syntax for this.</p>
...
@@ -382,7 +382,7 @@ a simplified syntax for this.</p>
</p>
</p>
<p>
<p>
©
Copyright 2012 Michael DeHaan.
<br/>
©
Copyright 2012 Michael DeHaan.
<br/>
Last updated on
May
19, 2012.
<br/>
Last updated on
Jun
19, 2012.
<br/>
</p>
</p>
</div>
</div>
</footer>
</footer>
...
...
This diff is collapsed.
Click to expand it.
faq.html
View file @
21381fc5
...
@@ -386,7 +386,7 @@ tasks – whether for a QA sytem, build system, or anything you can think of
...
@@ -386,7 +386,7 @@ tasks – whether for a QA sytem, build system, or anything you can think of
</p>
</p>
<p>
<p>
©
Copyright 2012 Michael DeHaan.
<br/>
©
Copyright 2012 Michael DeHaan.
<br/>
Last updated on
May
19, 2012.
<br/>
Last updated on
Jun
19, 2012.
<br/>
</p>
</p>
</div>
</div>
</footer>
</footer>
...
...
This diff is collapsed.
Click to expand it.
genindex.html
View file @
21381fc5
...
@@ -190,7 +190,7 @@ s.parentNode.insertBefore(ga, s);
...
@@ -190,7 +190,7 @@ s.parentNode.insertBefore(ga, s);
</p>
</p>
<p>
<p>
©
Copyright 2012 Michael DeHaan.
<br/>
©
Copyright 2012 Michael DeHaan.
<br/>
Last updated on
May
19, 2012.
<br/>
Last updated on
Jun
19, 2012.
<br/>
</p>
</p>
</div>
</div>
</footer>
</footer>
...
...
This diff is collapsed.
Click to expand it.
gettingstarted.html
View file @
21381fc5
...
@@ -232,7 +232,6 @@ bugs and feature ideas.</p>
...
@@ -232,7 +232,6 @@ bugs and feature ideas.</p>
<p>
Ansible is trivially easy to run from a checkout, root permissions are not required
<p>
Ansible is trivially easy to run from a checkout, root permissions are not required
to use it:
</p>
to use it:
</p>
<div
class=
"highlight-python"
><pre>
$ git clone git://github.com/ansible/ansible.git
<div
class=
"highlight-python"
><pre>
$ git clone git://github.com/ansible/ansible.git
$ git checkout -t origin/devel
$ cd ./ansible
$ cd ./ansible
$ source ./hacking/env-setup
</pre>
$ source ./hacking/env-setup
</pre>
</div>
</div>
...
@@ -249,7 +248,6 @@ $ export ANSIBLE_HOSTS=~/ansible_hosts</pre>
...
@@ -249,7 +248,6 @@ $ export ANSIBLE_HOSTS=~/ansible_hosts</pre>
<p>
If you are not working from a distribution where Ansible is packaged yet, you can install Ansible
<p>
If you are not working from a distribution where Ansible is packaged yet, you can install Ansible
using
“
make install
”
. This is done through
<cite>
python-distutils
</cite>
:
</p>
using
“
make install
”
. This is done through
<cite>
python-distutils
</cite>
:
</p>
<div
class=
"highlight-python"
><pre>
$ git clone git://github.com/ansible/ansible.git
<div
class=
"highlight-python"
><pre>
$ git clone git://github.com/ansible/ansible.git
$ git checkout -t origin/devel
$ cd ./ansible
$ cd ./ansible
$ sudo make install
</pre>
$ sudo make install
</pre>
</div>
</div>
...
@@ -351,7 +349,7 @@ explore, but you already have a fully working infrastructure!</p>
...
@@ -351,7 +349,7 @@ explore, but you already have a fully working infrastructure!</p>
</p>
</p>
<p>
<p>
©
Copyright 2012 Michael DeHaan.
<br/>
©
Copyright 2012 Michael DeHaan.
<br/>
Last updated on
May
19, 2012.
<br/>
Last updated on
Jun
19, 2012.
<br/>
</p>
</p>
</div>
</div>
</footer>
</footer>
...
...
This diff is collapsed.
Click to expand it.
index.html
View file @
21381fc5
...
@@ -447,7 +447,7 @@ Puppet Labs, and is now with <a class="reference external" href="http://rpath.co
...
@@ -447,7 +447,7 @@ Puppet Labs, and is now with <a class="reference external" href="http://rpath.co
</p>
</p>
<p>
<p>
©
Copyright 2012 Michael DeHaan.
<br/>
©
Copyright 2012 Michael DeHaan.
<br/>
Last updated on
May
19, 2012.
<br/>
Last updated on
Jun
19, 2012.
<br/>
</p>
</p>
</div>
</div>
</footer>
</footer>
...
...
This diff is collapsed.
Click to expand it.
moduledev.html
View file @
21381fc5
...
@@ -455,7 +455,7 @@ Stop by the mailing list to inquire about requirements.</p>
...
@@ -455,7 +455,7 @@ Stop by the mailing list to inquire about requirements.</p>
</p>
</p>
<p>
<p>
©
Copyright 2012 Michael DeHaan.
<br/>
©
Copyright 2012 Michael DeHaan.
<br/>
Last updated on
May
19, 2012.
<br/>
Last updated on
Jun
19, 2012.
<br/>
</p>
</p>
</div>
</div>
</footer>
</footer>
...
...
This diff is collapsed.
Click to expand it.
modules.html
View file @
21381fc5
...
@@ -789,7 +789,7 @@ yum pkg=httpd state=installed</pre>
...
@@ -789,7 +789,7 @@ yum pkg=httpd state=installed</pre>
</p>
</p>
<p>
<p>
©
Copyright 2012 Michael DeHaan.
<br/>
©
Copyright 2012 Michael DeHaan.
<br/>
Last updated on
May
19, 2012.
<br/>
Last updated on
Jun
19, 2012.
<br/>
</p>
</p>
</div>
</div>
</footer>
</footer>
...
...
This diff is collapsed.
Click to expand it.
patterns.html
View file @
21381fc5
...
@@ -269,28 +269,31 @@ proxy=proxy.atlanta.example.com</pre>
...
@@ -269,28 +269,31 @@ proxy=proxy.atlanta.example.com</pre>
<h2>
Groups of Groups, and Group Variables
<a
class=
"headerlink"
href=
"#groups-of-groups-and-group-variables"
title=
"Permalink to this headline"
>
¶
</a></h2>
<h2>
Groups of Groups, and Group Variables
<a
class=
"headerlink"
href=
"#groups-of-groups-and-group-variables"
title=
"Permalink to this headline"
>
¶
</a></h2>
<p>
Using Ansible 0.4, it is possible to make groups of groups and assign
<p>
Using Ansible 0.4, it is possible to make groups of groups and assign
variables to groups. These variables can be used by /usr/bin/ansible-playbook, but not
variables to groups. These variables can be used by /usr/bin/ansible-playbook, but not
/usr/bin/ansible.
</p>
/usr/bin/ansible:
</p>
<blockquote>
<div
class=
"highlight-python"
><pre>
[atlanta]
<div><p>
[atlanta]
host1
host1
host2
</p>
<p>
[raleigh]
host2
host2
host3
</p>
<p>
[southeast:children]
[raleigh]
host2
host3
[southeast:children]
atlanta
atlanta
raleigh
</p>
raleigh
<p>
[southeast:vars]
[southeast:vars]
some_server=foo.southeast.example.com
some_server=foo.southeast.example.com
halon_system_timeout=30
halon_system_timeout=30
self_destruct_countdown=60
self_destruct_countdown=60
escape_pods=2
</p>
escape_pods=2
<p>
[usa:children]
[usa:children]
southeast
southeast
northeast
northeast
southwest
southwest
southeast
</p>
southeast
</p
re
>
</div>
</blockquote>
</div>
</div>
</div>
<div
class=
"section"
id=
"yaml-inventory-format"
>
<div
class=
"section"
id=
"yaml-inventory-format"
>
<h2>
YAML Inventory Format
<a
class=
"headerlink"
href=
"#yaml-inventory-format"
title=
"Permalink to this headline"
>
¶
</a></h2>
<h2>
YAML Inventory Format
<a
class=
"headerlink"
href=
"#yaml-inventory-format"
title=
"Permalink to this headline"
>
¶
</a></h2>
...
@@ -363,7 +366,7 @@ YAML:</p>
...
@@ -363,7 +366,7 @@ YAML:</p>
</p>
</p>
<p>
<p>
©
Copyright 2012 Michael DeHaan.
<br/>
©
Copyright 2012 Michael DeHaan.
<br/>
Last updated on
May
19, 2012.
<br/>
Last updated on
Jun
19, 2012.
<br/>
</p>
</p>
</div>
</div>
</footer>
</footer>
...
...
This diff is collapsed.
Click to expand it.
playbooks.html
View file @
21381fc5
...
@@ -268,8 +268,9 @@ Just <cite>Control-C</cite> to kill it and run it again with <cite>-K</cite>.</p
...
@@ -268,8 +268,9 @@ Just <cite>Control-C</cite> to kill it and run it again with <cite>-K</cite>.</p
other: 'magic'
</pre>
other: 'magic'
</pre>
</div>
</div>
<p>
These variables can be used later in the playbook like this:
</p>
<p>
These variables can be used later in the playbook like this:
</p>
<div
class=
"highlight-python"
><pre>
$varname
</pre>
<div
class=
"highlight-python"
><pre>
$varname
or ${varname}
</pre>
</div>
</div>
<p>
The later is useful in the event you need to do something like ${other}_concatenated_value.
</p>
<p>
In templates, the full power of the Jinja2 templating language is also available, which looks like this:
</p>
<p>
In templates, the full power of the Jinja2 templating language is also available, which looks like this:
</p>
<div
class=
"highlight-python"
><pre>
{{ varname }}
</pre>
<div
class=
"highlight-python"
><pre>
{{ varname }}
</pre>
</div>
</div>
...
@@ -471,7 +472,7 @@ Let’s run a playbook using a parallelism level of 10:</p>
...
@@ -471,7 +472,7 @@ Let’s run a playbook using a parallelism level of 10:</p>
</p>
</p>
<p>
<p>
©
Copyright 2012 Michael DeHaan.
<br/>
©
Copyright 2012 Michael DeHaan.
<br/>
Last updated on
May
19, 2012.
<br/>
Last updated on
Jun
19, 2012.
<br/>
</p>
</p>
</div>
</div>
</footer>
</footer>
...
...
This diff is collapsed.
Click to expand it.
playbooks2.html
View file @
21381fc5
...
@@ -501,7 +501,7 @@ logs from ansible-pull runs would be an excellent way to gather and analyze remo
...
@@ -501,7 +501,7 @@ logs from ansible-pull runs would be an excellent way to gather and analyze remo
</p>
</p>
<p>
<p>
©
Copyright 2012 Michael DeHaan.
<br/>
©
Copyright 2012 Michael DeHaan.
<br/>
Last updated on
May
19, 2012.
<br/>
Last updated on
Jun
19, 2012.
<br/>
</p>
</p>
</div>
</div>
</footer>
</footer>
...
...
This diff is collapsed.
Click to expand it.
search.html
View file @
21381fc5
...
@@ -207,7 +207,7 @@ s.parentNode.insertBefore(ga, s);
...
@@ -207,7 +207,7 @@ s.parentNode.insertBefore(ga, s);
</p>
</p>
<p>
<p>
©
Copyright 2012 Michael DeHaan.
<br/>
©
Copyright 2012 Michael DeHaan.
<br/>
Last updated on
May
19, 2012.
<br/>
Last updated on
Jun
19, 2012.
<br/>
</p>
</p>
</div>
</div>
</footer>
</footer>
...
...
This diff is collapsed.
Click to expand it.
searchindex.js
View file @
21381fc5
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment