Highlighted
sarahjohn388
1 Nickel

Giving a YAML file more than one key, while only using one value for the keys

Hello All, I have facing some issue, Give me a solution for that!

I have an issue where I need to make a yaml file that will contain the following keys:

ETA SOL VETS EMC

From the Vets EMC Keys I need one value that will be an email address all four of the keys are the same email address, is it possible to make a yaml file with more then one key, and only one value..?

For example:

agencies:
  
- ETA
  
- SOL
  
- VETS
  
- EMC
  advocate_email
: "example@example.com" #<= Give these four the same value
  
- some
  
- other
  
- ones
  advocate_email
: "example1@example1.com" #<= Give three another value.. So one and so forth

Need your help guys

Thanks

Sarahjohn

Tags (1)
0 Kudos