another error message 
ansible@ansible-new:/etc/ansible$ tail -f ansible.log
2018-02-08 09:21:54,543 p=26612 u=ansible |  socket operation completed 
with rc 0
2018-02-08 09:21:54,543 p=26612 u=ansible |  socket operation is RUN
2018-02-08 09:21:54,543 p=26612 u=ansible |  socket operation completed 
with rc 0
2018-02-08 09:21:54,758 p=26604 u=ansible |  fatal: [10.101.250.41]: 
FAILED! => {"changed": false, "msg": "Unsupported parameters for 
(junos_config) module: dest Supported parameters include: 
backup,comment,confirm,confirm_commit,host,lines,password,port,provider,replace,rollback,src,src_format,ssh_keyfile,timeout,transport,update,username,zeroize"}
2018-02-08 09:21:54,760 p=26604 u=ansible |   [WARNING]: Could not create 
retry file '/etc/ansible/backup_config-
junos.retry'.         [Errno 13] Permission denied: u'/etc/ansible
/backup_config-junos.retry'
2018-02-08 09:21:54,760 p=26604 u=ansible |  PLAY RECAP 
*********************************************************************
2018-02-08 09:21:54,760 p=26604 u=ansible |  10.101.250.41              : 
ok=0    changed=0    unreachable=0    failed=1
2018-02-08 09:22:24,543 p=26612 u=ansible |  persistent connection idle 
timeout triggered, timeout value is 30 secs
2018-02-08 09:22:24,543 p=26612 u=ansible |  shutdown persistent connection 
requested
2018-02-08 09:22:24,543 p=26612 u=ansible |  closing local listener
2018-02-08 09:22:24,543 p=26612 u=ansible |  closing the connection
2018-02-08 09:22:24,544 ncclient.operations.rpc Requesting 'CloseSession'
2018-02-08 09:22:24,608 p=26612 u=ansible |  removing the local control 
socket
2018-02-08 09:22:24,608 p=26612 u=ansible |  shutdown complete
2018-02-08 09:22:24,608 p=26612 u=ansible |  shutdown persistent connection 
requested
2018-02-08 09:22:24,608 p=26612 u=ansible |  persistent connection is not 
active
2018-02-08 09:22:24,608 p=26612 u=ansible |  shutdown local socket, 
connection was active for 0:00:39.071942 secs

Thanks 

On Wednesday, February 7, 2018 at 9:45:58 AM UTC, Daley Okuwa wrote:

> still getting the error messages
>
>  tail -f ansible.log
>   self._cipher = factory.new(key, *args, **kwargs)
> 2018-02-07 09:37:38,933 p=24501 u=ansible |  connecting to host 
> 10.101.250.41 returned an error
> 2018-02-07 09:37:38,933 p=24501 u=ansible |  Unknown host key 
> [b4:5c:23:06:c0:6e:3f:b3:f0:2e:de:30:6d:75:a1:dd] for [10.101.250.41]
> 2018-02-07 09:37:47,827 p=24493 u=ansible |  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
> "}
> 2018-02-07 09:37:47,828 p=24493 u=ansible |   [WARNING]: Could not create 
> retry file '/etc/ansible/backup_config-
> junos.retry'.         [Errno 13] Permission denied: u'/etc/ansible
> /backup_config-junos.retry'
>
>
> On Monday, February 5, 2018 at 4:36:57 PM UTC, Daley Okuwa wrote:
>
>>
>>
>> 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/91fb7962-7f6a-48e8-bfbc-9d0f89bf22ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to