In a procedural language, you define the whole process and provide the steps how to do it. You just provide orders and define how the process will be served.
So YAML is declarative programming language? Because we define what we want instead of writing actual logic.
I am asking this because if anyone knows Ansible which is configuration management tool, it uses YAML but it still falls in procedural language category.
To address the ansible comment and maybe provide an example between the differences of the two. Ansible is procedural where as something like puppet or terraform are declarative. For example, you create an ansible yaml file to deploy 10 ec2 instances like this:
-ec2:
数到10
图片来源: ami-058c6e5b73b074cd2
Instance _ type: t2.micro