YAML(YAML Aint Markup Language) It is python based Language. It is widely used in DevOps tools like Docker, Kubernetes, and Ansible. You nee...
YAML(YAML Aint Markup Language)
- It is python based Language.
- It is widely used in DevOps tools like Docker, Kubernetes, and Ansible.
- You need to indent your code properly otherwise it throws syntax - Error.
- .yml or .yaml is the extension of YAML files.
- It stores the data in the following formats
key-value pair:- name: ansible
collection:
names:
- Pong
- Mikraj
- Naveen
Playbook (file name)
It is an ansible script name which is having extension either .yml or .yaml
play
In Playbook we can define one or more plays and these plays represents a set of tasks that you need to execute on a set of host machines.
tasks
Plays consist of tasks and each task is having a set of modules definition which need to execute at run time.
Variables
Plays can have some variables which you can use in the tasks.
COMMENTS