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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4fe86933-0720-4dbc-a355-fa26472c6f06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to