Difference between revisions of "YAML"
Jump to navigation
Jump to search
Line 38: | Line 38: | ||
== See also == | == See also == | ||
* [[JSON]] | * [[JSON]] | ||
− | * [[Ansible]] | + | * [[Ansible]], Playbook |
* [[yq]] command-line YAML processor | * [[yq]] command-line YAML processor | ||
* <code>[[docker-compose.yml]]</code> | * <code>[[docker-compose.yml]]</code> |
Revision as of 10:56, 16 January 2020
YAML (YAML Ain't Markup Language) is a human-readable data serialization language.
Basic YAML file example with one record:
# An employee record martin_smith: name: Martin Smith job: Developer skill: Elite
Basic YAML file example with two record:
# My employee records # An employee record - martin_smith: name: Martin Smith job: Developer skill: Elite # An employee record - Thomas_Edisson: name: Tomas Eddison job: Developer skill: Basic
Install
- Ubuntu:
snap install yq
Activities
- Write a YAML file and test it with yq:
yq r your_new_yaml_file.yml
[1] - Read 10 YAML tips for people who hate YAML https://www.redhat.com/sysadmin/yaml-tips. (yamllint)
- Read https://en.wikipedia.org/wiki/Comparison_of_data-serialization_formats
- Read stackoverflow YAML related questions: https://stackoverflow.com/questions/tagged/yaml?tab=Votes
See also
- JSON
- Ansible, Playbook
- yq command-line YAML processor
docker-compose.yml
Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.
Advertising: