title: Ansible playbook example code fail to run
body: <p>I'm started to try Ansible, and using example code from Ansible Documentation. After I try several examples, I get error at the beginning of the code. It says</p>
  
  <pre><code>- name: Change the hostname to Windows_Ansible
    ^ here(Point at name)" 
  </code></pre>
  
  <p>Any advice would be appreciate. </p>
  
  <p>I tried this one
  <a href="https://docs.ansible.com/ansible/latest/modules/win_hostname_module.html#win-hostname-module" rel="nofollow noreferrer">https://docs.ansible.com/ansible/latest/modules/win_hostname_module.html#win-hostname-module</a></p>
  
  <pre><code>---
  
  - name: Change the hostname to Windows_Ansible
    win_hostname:
      name: "Windows_Ansible"
    register: res
  
  - name: Reboot
    win_reboot:
    when: res.reboot_required
  </code></pre>