I am working on a Ansible file that will update our Windows boxes instead 
of using SCCM. I keep getting an error. Here is my playbook. 

---
- hosts: Windows
  connection: winrm
  tasks:
    - name: Install Critical Updates
      win_updates:
        category_names:
          - CriticalUpdates
        log_path= "c:/temp/ansible_wu.txt"
    - name: Reboot Servers
      raw: shutdown.exe /r /t 10  
The error is:ERROR! Syntax Error while loading YAML.


The error appears to have been in '/home/bud/ansible/WinUpdate.yml': line 13, 
column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Restart machine
^ here

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to