Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (ansible) Jeffreys-MacBook-Pro:ansible jeffreydambly$ ansible-playbook playbook.yaml -i ./inventory --module-path ./napalm-ansible/
- ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
- The error appears to have been in '/Users/jeffreydambly/PycharmProjects/ansible/playbook.yaml': line 5, column 5, but may
- be elsewhere in the file depending on the exact syntax problem.
- The offending line appears to be:
- tasks:
- - name: Get Facts from device
- ^ here
- The error appears to have been in '/Users/jeffreydambly/PycharmProjects/ansible/playbook.yaml': line 5, column 5, but may
- be elsewhere in the file depending on the exact syntax problem.
- The offending line appears to be:
- tasks:
- - name: Get Facts from device
- ^ here
- (ansible) Jeffreys-MacBook-Pro:ansible jeffreydambly$
- ---
- - name: Testing with Napalm
- hosts: arista
- tasks:
- - name: Get Facts from device
- napalm_get_facts:
- hostname = {{ inventory_hostname }}
- username = {{ username }}
- password = {{ password }}
- dev_os = {{ dev_os }}
- filter = 'facts,interfaces,bgp_neighbors'
- register: result
- - name: Print Data
- debug: var=result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement