Advertisement
Guest User

Ansible

a guest
Mar 30th, 2017
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. - name: "Power off xxxxxx"
  2. hosts: localhost
  3. connection: local
  4. gather_facts: False
  5.  
  6. tasks:
  7.  
  8. - name: Power Off vm
  9. vpshere_guest:
  10. vcenter_hostname: "x.x.x.x"
  11. username: "xxxxxxx"
  12. password: "xxxxxxx"
  13. guest: "xxxxxx"
  14. state: shutdownguest
  15. validate_certs: no
  16.  
  17.  
  18. Error:
  19. [WARNING]: provided hosts list is empty, only localhost is available
  20.  
  21. ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
  22.  
  23. The error appears to have been in '/home/markse/Documents/AnsibleScripts/poweroffvm.yaml': line 38, column 5, but may
  24. be elsewhere in the file depending on the exact syntax problem.
  25.  
  26. The offending line appears to be:
  27.  
  28. # - pyvmomi
  29. - name: Power Off xxxxxx
  30. ^ here
  31.  
  32.  
  33. The error appears to have been in '/home/markse/Documents/AnsibleScripts/poweroffvm.yaml': line 38, column 5, but may
  34. be elsewhere in the file depending on the exact syntax problem.
  35.  
  36. The offending line appears to be:
  37.  
  38. # - pyvmomi
  39. - name: Power Off xxxx
  40. ^ here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement