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
9ad59296
Commit
9ad59296
authored
Aug 19, 2012
by
Tim Bielawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for 'local_action' (ansible:#905). Oh, and fix 'make viewdocs'.
parent
1824dd33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
build-site.py
+1
-1
rst/playbooks2.rst
+16
-1
No files found.
build-site.py
View file @
9ad59296
...
...
@@ -93,5 +93,5 @@ if __name__ == '__main__':
if
"view"
in
sys
.
argv
:
import
webbrowser
if
not
webbrowser
.
open
(
'
html/
index.html'
):
if
not
webbrowser
.
open
(
'index.html'
):
print
>>
sys
.
stderr
,
"Could not open on your webbrowser."
rst/playbooks2.rst
View file @
9ad59296
...
...
@@ -491,7 +491,6 @@ a good idea::
serial: 5
tasks:
- name: take out of load balancer pool
action: command /usr/bin/take_out_of_pool $inventory_hostname
delegate_to: 127.0.0.1
...
...
@@ -503,6 +502,22 @@ a good idea::
action: command /usr/bin/add_back_to_pool $inventory_hostname
delegate_to: 127.0.0.1
Here is the same playbook as above, but using the shorthand syntax,
'local_action', for delegating to 127.0.0.1::
---
# ...
tasks:
- name: take out of load balancer pool
local_action: command /usr/bin/take_out_of_pool $inventory_hostname
# ...
- name: add back to load balancer pool
local_action: command /usr/bin/add_back_to_pool $inventory_hostname
Style Points
````````````
...
...
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