Regarding.... Lecture: Basic Playbook Syntax Demonstration

So this playbook is basically a YAML file right, and though we used three hyphens "---" at the start of the file, we didn't use three periods "..." at the end. I was just wondering did we miss to put it or is it not required or this is not a YAML file at all?
  • post-author-pic
    John M
    09-20-2018

    Raj, it is a YAML file. I have done playbooks without the three periods. I think it is a matter of best practice but may also be different in different versions of Ansible as it progresses. The syntax for playbooks may be found here: https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html

  • post-author-pic
    Rajdeep R
    09-20-2018

    Thanks John!

Looking For Team Training?

Learn More