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
88dab0db
Commit
88dab0db
authored
Apr 02, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add prompts example
parent
f92760de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
examples/playbooks/prompts.yml
+28
-0
No files found.
examples/playbooks/prompts.yml
0 → 100644
View file @
88dab0db
---
# it is possible to ask for variables from the user at the start
# of a playbook run, for example, as part of a release script.
-
hosts
:
all
user
:
root
# regular variables are a dictionary of keys and values
vars
:
this_is_a_regular_var
:
'
moo'
so_is_this
:
'
quack'
# prompted variables
vars_prompt
:
release_version
:
"
product
release
version"
tasks
:
# this is just a simple example to show that vars_prompt works, but
# you might ask for a tag to use with the git module or perhaps
# a package version to use with the yum module.
-
name
:
imagine this did something interesting with $release_version
action
:
shell echo foo >> /tmp/$release_version
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