This is one of my plays. - name: Make Tools folder
win_file: path: C:\Tools state: directory - name: Make build folder win_file: path: C:\build state: directory - name: Make TEMP folder win_file: path: C:\TEMP state: directory - name: Make log folder inside of temp win_file: path: C:\TEMP\log state: directory 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/4466651a-25d0-4a1c-b02e-d37c9dbc1d9e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.