hello all
I have this in my backup_config_yaml
---
- name: BACKUP CONFIGS OF JUNOS DEVICES
hosts: all
connection: local
gather_facts: no
tasks:
- name: GET CONFIG
junos_get_config:
user=xxxx
passwd=xxxxx
host={{inventory_hostname}}
dest=backups/{{inventory_hostname}}.conf
port=22
also have installed Junos PyEZ on my ansible server
my etc/ansible/ hosts
[junos]
x.x.x.x
I run the playbook
ansible@ansible-new:/etc/ansible$ ansible-playbook -i hosts backup_config-junos.yml
I get this error message
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/etc/ansible/backup_config-junos.yml': line 10, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: GET CONFIG
^ here
The error appears to have been in '/etc/ansible/backup_config-junos.yml': line 10, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: GET CONFIG
^ here
exception type: <class 'ansible.errors.AnsibleParserError'>
exception: no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/etc/ansible/backup_config-junos.yml': line 10, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: GET CONFIG
^ here