title: <class 'ansible.parsing.yaml.objects.AnsibleSequence'> ERROR IN PLAYBOOK.WHAT IS WRONG WITH MAIN.YML FILE
body: <ul>
  <li>Create a file named simplefile.txt - write a task in the main.yml file in present in fresco_when\tasks folder.- the task is to move the created simplefile.txt file to created directory i.e move the create file to /home/user/test folder.- move only if the file doesn't exist. using when in the playbook</li>
  </ul>
  <p>I created a text file and then wrote this main.yml file:</p>
  <ul>
  <li>hosts: localhost
  tasks:
  <ul>
  <li>name: copy a file, but do not copy if the file already exists
  command: cp challenge/fresco_when/defaults/simplefile.txt /home/usr/test/ creates=simplefile.txt</li>
  </ul>
  </li>
  </ul>
  <p>I got this error :</p>
  <p>ERROR! unexpected parameter type in action: &lt;class 'ansible.parsing.yaml.objects.AnsibleSequence'&gt;</p>
  <p>The error appears to be in '/projects/challenge/fresco_when/tasks/main.yml': line 1, column 3, but may</p>
  <p>be elsewhere in the file depending on the exact syntax problem.</p>
  <p>The offending line appears to be:</p>
  <ul>
  <li><p>hosts: localhost</p>
  <p>^ here</p>
  </li>
  </ul>
  <p>SCORE:0%</p>
  <p>Please let me know what is wrong with the code</p>