I have gone to that website to troubleshoot but I still cant get it

ansible@ansible-new:/etc/ansible$ ansible-playbook -vvvv -i hosts 
backup_config-junos.yml
[WARNING]: log file at /var/log/ansible.log is not writeable and we cannot 
create it, aborting
ansible-playbook 2.4.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = 
[u'/home/ansible/.ansible/plugins/modules', 
u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible-playbook
  python version = 2.7.12 (default, Dec  4 2017, 14:50:18) [GCC 5.4.0 
20160609]
Using /etc/ansible/ansible.cfg as config file
setting up inventory plugins
Parsed /etc/ansible/hosts inventory source with ini plugin
Loading callback plugin default of type stdout, v2.0 from 
/usr/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc
PLAYBOOK: backup_config-junos.yml 
**********************************************
1 plays in backup_config-junos.yml
PLAY [BACKUP CONFIGS OF JUNOS DEVICES] 
*****************************************
META: ran handlers
TASK [GET  CONFIG] 
*************************************************************
task path: /etc/ansible/backup_config-junos.yml:10
<10.101.250.41> using connection plugin netconf
<10.101.250.41> socket_path: None
fatal: [10.101.250.41]: FAILED! => {
    "changed": false,
    "msg": "unable to open shell. Please see: 
https://docs.ansible.com/ansible/network_debug_troubleshooting.html#unable-to-open-shell";
}
 [WARNING]: Could not create retry file '/etc/ansible/backup_config-
junos.retry'.         [Errno 13] Permission denied: u'/etc/ansible
/backup_config-junos.retry'

PLAY RECAP 
*********************************************************************
10.101.250.41              : ok=0    changed=0    unreachable=0    failed=1


On Friday, February 2, 2018 at 11:52:16 AM UTC, Daley Okuwa wrote:

> 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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/95f6d71f-042a-4639-b40b-d486231e0aea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to