I need to get all node names from yaml file which has a particular tag in properties. This is the structure of YAML file:
node1:  
    description: "App Server"
     ******************** /many lines/ ********
    tags:  "web_server,file_server"
node2:  
    description: "Server"
    ******************** /many lines/ ******** 
    tags: "nginx,nginx_a,nginx_b"
node3:
    description: "Server"
    ******************** /many lines/ ******** 
    tags: "application1,application2"
    and so on 
How to get node names which have tag "nginx" inside? We can read the file from the end , if we have got tag name than get first pattern ^[a-z], and start for searching tag again.
