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
bc62feb5
Commit
bc62feb5
authored
Mar 08, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't say script
parent
2c6dd032
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
rst/YAMLScripts.rst
+5
-5
No files found.
rst/YAMLScripts.rst
View file @
bc62feb5
YAML
Scripts
===========
=
YAML
Format
===========
This page provides a basic overview of correct YAML syntax, which is how Ansible
playbooks (our configuration management language) are expressed.
...
...
@@ -8,14 +8,14 @@ You may also wish to read playbook examples and will quickly pick this up from t
YAML Basics
-----------
For `ansible`, every YAML
script
must be a list at it's root-most
For `ansible`, every YAML
file
must be a list at it's root-most
element. Each item in the list is a dictionary. These dictionaries
represent all the options you can use to write a
`ansible` script
. In
represent all the options you can use to write a
n `ansible` file
. In
addition, all YAML files (regardless of their association with
`ansible` or not) should start with ``---``.
In YAML a list can be represented in two ways. In one way all members
of a list are lines beginning at the same indentation level starting
of a list are lines beginning at the same indenta
`
tion level starting
with a ``-`` character::
---
...
...
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