How understand and practice correct way of yml or indentation, so confusing
- hosts: webservers vars: http_port: 80 max_clients: 200 remote_user: root tasks: - name: ensure apache is at the latest version ----> here no extra spaces like in handlers tag yum: name=httpd state=latest - name: write the apache config file template: src=/srv/httpd.j2 dest=/etc/httpd.conf notify: - restart apache - name: ensure apache is running (and enable it at boot) service: name=httpd state=started enabled=yes handlers: - name: restart apache ----- -----> here i see two spaces before - Why is it so it so confusing to remember when to give 2 spaces and when not service: name=httpd state=restarted -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3c54151f-c4d9-4ccc-9f81-058f4ba64c15%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.