YAML Ain't Markup Language

YAML stands for YAML Ain't Markup Language and is a data serialization language, mostly used to stored configuration information.

The main characteristics of YAML are:

  • Human readable: its easy to represent complex data in a simple way.
  • Simple and clean syntax: the syntax is clean and easy to scan through.
  • YAML is a superset of JSON: any valid JSON file is also valid YAML file, but not vice-versa.

Due to the above benefits, YAML is widely used for DevOps technologies as Docker, Kubernetes and Ansible.

The two main components in YAML files are:

  • arrays: listed with a dash -
  • objects: defined as key: value (the colon must be followed by a space)

YAML support only spaces for indentation, it is case-sensitive and its extension is .yaml or .yml.

This an example of YAML syntax:

Company:
  name: Adaltas
  description: | 


 Adaltas is a team of consultants with a focus on Open Source, Big Data 


 and distributed systems based in France, Canada and Morocco.
  address: 6 Rue Jules Simon, 92100 Boulogne-Billancourt
  offices:
  - France
  - Canada
  - Morocco

Related articles

Ansible variables: choosing the right location

Ansible variables: choosing the right location

Categories: DevOps & SRE | Tags: Infrastructure, Ansible, IaC, YAML

Defining variables for your Ansible playbooks and roles can become challenging as your project grows. Browsing the Ansible documentation, the diversity of Ansible variables location is confusing, toā€¦

Xavier HERMAND

By Xavier HERMAND

Mar 15, 2022

Notes after Katacoda Training on Kubernetes Container Orchestration

Notes after Katacoda Training on Kubernetes Container Orchestration

Categories: Containers Orchestration, Learning | Tags: Helm, Ingress, Kubeadm, CNI, Micro Services, Minikube, Kubernetes

A few weeks ago, I dedicated two days to follow the turorials available on Katacoda, the interactive learning platform for Kubernetes or any other container orchestration platform. Iā€™m sharing myā€¦

David WORMS

By David WORMS

Dec 14, 2017

From Dockerfile to Ansible Containers

From Dockerfile to Ansible Containers

Categories: Containers Orchestration, DevOps & SRE, Open Source Summit Europe 2017 | Tags: pip, Shell, Ansible, Docker, Docker Compose, YAML

This talk was an introduction to the Dockerfile format and to Ansible containerā€™s tool and then a comparison of both. It was hold by Tomas Tomecek from Red Hatā€™s containerization team. The Dockerfileā€¦

CĆ©sar BEREZOWSKI

By CĆ©sar BEREZOWSKI

Oct 25, 2017

Canada - Morocco - France

We are a team of Open Source enthusiasts doing consulting in Big Data, Cloud, DevOps, Data Engineering, Data Scienceā€¦

We provide our customers with accurate insights on how to leverage technologies to convert their use cases to projects in production, how to reduce their costs and increase the time to market.

If you enjoy reading our publications and have an interest in what we do, contact us and we will be thrilled to cooperate with you.

Support Ukrain