Thanks for the tip.  It works fine now.  I should have used a simple YAML 
format checker.

On Monday, November 10, 2014 at 3:31:42 PM UTC-6, Matt Martz wrote:
>
> Your indentation is off.  the word "tasks" is indented too far.  Here is a 
> properly indented playbook:
>
> ---
> - hosts: windows
>   tasks:
>     - name: test msi installer
>       win_msi:
>         path='C:/Home/ansmgr/documents/wixedit-0.7.5.msi'
>         creates='C:\Program Files (x86)\WixEdit\binaries\WixEdit'
>         state=present
>
> There are many editors that should be able to perform syntax highlighting 
> on YAML, such as notepadd++ on Windows, Sublime on Mac.  You can also use 
> something like: http://yaml-online-parser.appspot.com
>
> On Mon, Nov 10, 2014 at 3:26 PM, skinnedknuckles <[email protected] 
> <javascript:>> wrote:
>
>> Ansible 1.8
>> CentOs 7
>> Powershell 3
>>
>> When I run this playbook
>>
>> ---
>>     - hosts: windows
>>          tasks:
>>          - name: test msi installer
>>           win_msi:
>>               path='C:/Home/ansmgr/documents/wixedit-0.7.5.msi'
>>               creates='C:\Program Files (x86)\WixEdit\binaries\WixEdit'
>>               state=present
>>
>> I get the following error message
>>
>> [ansmgr@localhost ansible]$ ansible-playbook test.yml 
>> ERROR: Syntax Error while loading YAML script, test.yml
>> Note: The error may actually appear before this position: line 4, column 
>> 14
>>
>>     -hosts: windows
>>         tasks:
>>              ^
>>
>> I'm guessing I've missed something very simple but I can't find it.  Is 
>> there a recommended YAML editor that can help me with syntax errors?
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/7bd867b8-695f-4bf4-aeb3-5ab96ea6ef79%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/7bd867b8-695f-4bf4-aeb3-5ab96ea6ef79%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Matt Martz
> @sivel
> sivel.net
>  

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0ea4b994-2341-4497-814e-48b472e828a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to