YAML : YAML is a Human readable Data-serialization language.
Let suppose data has to be fed to a python application as an input. Data can be in txt, Json, Yaml format.
But Txt format does not have any standard to follow. Ex: User A can arrange data in rows one by one user B can arrange data in columns format User C can arrange data in alternate lines with spaces in between.
This is where templating languages such as Json, Yaml come handy because they follow a standard, already defined and agreed. Input is passed to Kubernetes and Ansible in Yaml Format.
Ansible Playbook: A Ansible playbook is a list of plays.
Inside a Play:-- hosts: remote-user: task:
- module ----> For installation the DB server
- module ----> For starting the DB server
- module ----> To check the status
Under task, Modules are the ones that performs an action.