/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Administration/Server/Provisioning/ansible/format.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2017-04-03 02:45:17 UTC
  • Revision ID: csa@suren.me-20170403024517-dwzj0z0k1cmhxm7u
Restructuring, OpenShift, Ansible, Git

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Format (YAML)
 
2
======
 
3
 * YAML consists of lists and hashes. Lists are the lines begging at the same indentation level startign with '-'.
 
4
    - item1
 
5
    - item2
 
6
 Hash or dictionary is represented by a group of 'key: value' pairs. Indentation is again matters.
 
7
    key1: value1
 
8
    key2: value2
 
9
    key3:
 
10
        another_hash_key1: another_hash_value1
 
11
 The next level hash also can be specified on the same line with
 
12
    - item key1="value1" key2="value2" key3="value3" ...
 
13
 Also dictionaries and lists can also be represented in an abbreviated form:
 
14
    martin: {name: Martin D'vloper, job: Developer, skill: Elite}
 
15
    fruits: ['Apple', 'Orange', 'Strawberry', 'Mango']
 
16
 
 
17
 
 
18
 * Values can span multiple lines using | or >. Spanning multiple lines using a '|' will include the newlines. Using a '>' will ignore newlines.
 
19
        ignore_newlines: >
 
20
            this is really a
 
21
            single line of text
 
22