YAML is very commonly used language in DevOps. Below are some basic syntax for YAML 1. Key Value pair name: Ansible Version: 2.3.4 2. Array ...
YAML is very commonly used language in DevOps. Below are some basic syntax for YAML
1. Key Value pair
name: Ansible
Version: 2.3.4
2. Array or collection
ConfigurationManagement:
- Ansible
- Puppet
- Chef
- SaltStack
- Terraform
3. Dictionary
Ansible:
commands: Adhoc
Script: Playbooks
Puppet:
commands: PuppetCommands
script: Manifest
4. Dictionary In the dictionary
Ansible:
commands:
type: Adhoc
SingleLine: True
5. List of Dictionary
ConfigurationManagement:
-
name: Ansible
model: Push
-
name: Puppet
model: Pull
COMMENTS