Advertisement
Guest User

Untitled

a guest
May 16th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. (ansible) Jeffreys-MacBook-Pro:ansible jeffreydambly$ ansible-playbook playbook.yaml -i ./inventory --module-path ./napalm-ansible/
  2. ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
  3.  
  4. The error appears to have been in '/Users/jeffreydambly/PycharmProjects/ansible/playbook.yaml': line 5, column 5, but may
  5. be elsewhere in the file depending on the exact syntax problem.
  6.  
  7. The offending line appears to be:
  8.  
  9. tasks:
  10. - name: Get Facts from device
  11. ^ here
  12.  
  13.  
  14. The error appears to have been in '/Users/jeffreydambly/PycharmProjects/ansible/playbook.yaml': line 5, column 5, but may
  15. be elsewhere in the file depending on the exact syntax problem.
  16.  
  17. The offending line appears to be:
  18.  
  19. tasks:
  20. - name: Get Facts from device
  21. ^ here
  22.  
  23. (ansible) Jeffreys-MacBook-Pro:ansible jeffreydambly$
  24.  
  25. ---
  26. - name: Testing with Napalm
  27. hosts: arista
  28. tasks:
  29. - name: Get Facts from device
  30. napalm_get_facts:
  31. hostname = {{ inventory_hostname }}
  32. username = {{ username }}
  33. password = {{ password }}
  34. dev_os = {{ dev_os }}
  35. filter = 'facts,interfaces,bgp_neighbors'
  36. register: result
  37. - name: Print Data
  38. debug: var=result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement