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
1f93887e
Commit
1f93887e
authored
May 05, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update delegation example.
parent
3575a337
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
examples/playbooks/delegation.yml
+5
-5
No files found.
examples/playbooks/delegation.yml
View file @
1f93887e
...
...
@@ -10,7 +10,7 @@
# This example cheats by replacing the load balancer script with the 'echo' command,
# leaving actual communication with the load balancer as an exercise to the reader. In reality,
# you could call anything you want, the main thing is that it should do something with
#
$inventory_hostname
#
{{inventory_hostname}}
# NOTE: see batch_size_control.yml for an example of the 'serial' keyword, which you almost certainly
# want to use in this kind of example. Here we have a mocked up example that does something to
...
...
@@ -22,18 +22,18 @@
tasks
:
-
name
:
take the machine out of rotation
action
:
command echo taking out of rotation
$inventory_hostname
action
:
command echo taking out of rotation
{{inventory_hostname}}
delegate_to
:
127.0.0.1
# here's an alternate notation if you are delegating to 127.0.0.1, you can use 'local_action'
# instead of 'action' and leave off the 'delegate_to' part.
#
# - local_action: command echo taking out of rotation
$inventory_hostname
# - local_action: command echo taking out of rotation
{{inventory_hostname}}
-
name
:
do several things on the actual host
action
:
command echo hi mom
$inventory_hostname
action
:
command echo hi mom
{{inventory_hostname}}
-
name
:
put machine back into rotation
action
:
command echo inserting into rotation
$inventory_hostname
action
:
command echo inserting into rotation
{{inventory_hostname}}
delegate_to
:
127.0.0.1
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