Akash:
Hey, YAML experts, can you point me to what is this type: is this an element of the list or dictionary in the highlighted line:
R Banerjee:
when you start anything with -
it becomes an element of a list, so, what you are creating here is more like ( in terms of python )
write_files = [
{'path': '/opt/server.crt',
'owner': 'nginx:nginx',
'permissions': '0644' }]
Akash:
Thanks, this is not my code I am trying to understand someone else’s code. So element of the list here is the line starting with -
and everything below is dictionary?
R Banerjee:
> everything below is dictionary?
more like key-value pair
Akash:
okay, understood! Thank you!!