July 2017
Intermediate to advanced
266 pages
6h 36m
English
YAML's unique and well-formatted syntax provides a highly structured yet human-readable format for expressing data. More specifically, YAML's data structure is expressed in lists, with each list item containing key/value pairs (or dictionaries). At the beginning of each YAML file, YAML optionally supports a --- initiator (to notate the beginning of the YAML file), and conversely, at the end of each, YAML supports a ... terminator, which (as you may have guessed) indicates the end of a YAML file. Let's take a look at a very simple playbook as an example:
---- hosts: all vars : http_port : 80 tasks: - name: Install nginx web server apt: pkg=nginx state=installed update_cache=true notify: - start nginx
Now ...
Read now
Unlock full access