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
ce893824
Commit
ce893824
authored
Jul 19, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Legacy variable removal.
parent
9caef884
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
docsite/latest/rst/glossary.rst
+2
-3
docsite/latest/rst/playbooks.rst
+5
-1
No files found.
docsite/latest/rst/glossary.rst
View file @
ce893824
...
...
@@ -172,8 +172,7 @@ Lookup Plugin
A lookup plugin is a way to get data into Ansible from the outside world. These are how such things as "with_items" are implemented, which is a
basic looping plugin, but there are also things like "with_file" which loads data from a file, and even things for querying environment variables,
DNS text records, or key value stores. Lookup plugins can also be accessed in templates using an all caps form, such as the contents of a file
on the local machine can be accessed like ``$FILE(/path/to/file)``.
DNS text records, or key value stores. Lookup plugins can also be accessed in templates as ``{{ lookup('file','/path/to/file') }}``.
Multi-Tier
++++++++++
...
...
@@ -250,7 +249,7 @@ Local Action
++++++++++++
A local_action directive in a playbook targetting remote machines means that the given step will actually occur on local
machine, but that the variable '
$ansible_hostname
' can be passed in to reference the remote hostname being referred to in
machine, but that the variable '
{{ ansible_hostname }}
' can be passed in to reference the remote hostname being referred to in
that step. This can be used to trigger, for example, an rsync operation.
Loops
...
...
docsite/latest/rst/playbooks.rst
View file @
ce893824
...
...
@@ -433,7 +433,6 @@ Note that you cannot do variable substitution when including one playbook
inside
another
.
..
note
::
You
can
not
conditionally
path
the
location
to
an
include
file
,
like
you
can
with
'vars_files'
.
If
you
find
yourself
needing
to
do
this
,
consider
how
you
can
restructure
your
playbook
to
be
more
...
...
@@ -541,6 +540,11 @@ If you want to define certain tasks to happen before AND after roles are applied
post_tasks:
- shell: echo '
goodbye
'
.. note::
If you are using tags with tasks (described later as a means of only running part of a playbook)
be sure you also tag your pre_tasks and post_tasks and pass those along as well, especially if the pre
and post tasks are used for monitoring outage window control or load balancing.
Executing A Playbook
````````````````````
...
...
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