You don't have whitespace right, which Ansible is very finicky about. Try:
- name: Create directory structure win_file: path: C:\Temp\folder\subfolder state: directory Don't use "tab" keys, use your space bar. HTH, Larry On Wednesday, March 14, 2018 at 4:35:40 AM UTC-7, selim sarısu wrote: > > Hi Friends , > > When I tried to run any .yml task on the Ansible , I get following error ; > > My Syntax is here , > > - name: Create directory structure > win_file: > path: C:\Temp\folder\subfolder > state: directory > > > > ERROR! 'win_file' is not a valid attribute for a Play > > The error appears to have been in '/etc/ansible/create.yml': line 1, > column 3, but may > be elsewhere in the file depending on the exact syntax problem. > > The offending line appears to be: > > > - name: Create directory structure > ^ here > > Any ideal ? > -- 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/a1ea648d-3f2e-4de0-9ce9-624fbc38f851%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.