title: Indentation error while running ansible playbook
body: <p>I'm a newbee to ansible. While running this playbook, getting below error. Although I searched for the solution over the web I was unable to get any help specific to my problem. The problem seems to be with "notify:" syntax but not sure what exactly. Please can anyone help me in finding where is the mistake.</p>
  
  <p><strong>Ansible playbook -</strong> </p>
  
  <pre><code>    ---
   - hosts: droplets
     remote_user: root
  
     tasks:
     - name: Check if service httpd running
       service: name=httpd state=running
       notify:
       - start apache service
  
     handlers:
     - name: start apache
       service: name=httpd state=started
  ...
  </code></pre>
  
  <p><strong>Output:</strong> </p>
  
  <pre><code>   root@zarvis:/home/luckee/ansible# ansible-playbook servicechk.yml -f 2
  ERROR! Syntax Error while loading YAML.
  
  
  The error appears to have been in '/home/luckee/ansible/servicechk.yml': line 10, column 1, but may
  be elsewhere in the file depending on the exact syntax problem.
  
  The offending line appears to be:
  
         - start apache service
  
  ^ here
  </code></pre>
  
  <p>Any help would be great !</p>