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
7cb6ce66
Commit
7cb6ce66
authored
Mar 06, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
de3cff8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
README.md
+10
-7
No files found.
README.md
View file @
7cb6ce66
...
...
@@ -167,9 +167,7 @@ An example showing a small playbook:
max_clients: 200
user: root
tasks:
- include: base.yml
- name: configure template & module variables for future template calls
action: setup http_port=80 max_clients=200
- include: base.yml somevar=3 othervar=4
- name: write the apache config file
action: template src=/srv/httpd.j2 dest=/etc/httpd.conf
notify:
...
...
@@ -181,10 +179,15 @@ An example showing a small playbook:
Some key concepts here include:
*
Everything is expressed in simple YAML
*
Steps can be run as non-root
*
Modules can notify 'handlers' when changes occur.
*
Tasks and handlers can be 'included' to faciliate sharing and 'class' like behavior
*
Everything is expressed in a simple YAML data format, not a custom language, not code.
*
Playooks can have many steps
*
Any step can run as any user
*
Conditional handlers fire on 'notify'. Ex: restart apache only once, at the end, only if needed
*
Tasks and handlers can be 'included' to faciliate sharing and reuse
*
Include statements can take parameters for customization, and be used more than once per file
*
Variables from the host system (from facter, ohai, etc) bubble-up for use in templates
*
Variables can be deferenced like {{ varname }} in both include directives & templates
*
Templates are powered by Jinja2: http://jinja.pocoo.org/docs/templates/#synopsis
To run 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