fatal: [host-r0c1-a]: FAILED! => {"changed": false, "failed": true,
"invocation": {"module_args": {"dest": "host-r0c1-a.conf", "filter":
"interfaces", "format": "text", "host": "host-r0c1-a", "logfile":
"get_config.log", "options": "{'inherit': 'inherit', 'groups': 'groups'}",
"passwd": "XXXXXXX", "port": "830", "user": "XXXXXX"}, "module_name":
"junos_get_config"}, "msg": "Uncaught exception - please report: 'str'
object does not support item assignment"}
Can't figure this one out. Seems very straightforward in teh examples.
Thanks in advance,
J Scott
Playbook
---
- name: PLAY - BACKUP
hosts: PRD:DEV
gather_facts: no
connection: local
roles:
- Juniper.junos
vars_prompt:
- name: USERNAME
prompt: User name
private: no
- name: PASSWORD
prompt: password
private: yes
tasks:
- name: Checking NETCONF connectivity
wait_for: host={{ inventory_hostname }} timeout=5
- name: Get configs
junos_get_config:
user: "{{ USERNAME }}"
passwd: "{{ PASSWORD }}"
host: "{{ inventory_hostname }}"
dest: "{{ inventory_hostname }}.xml"
logfile: get_config.log
format: xml
filter: "interfaces"
options: {inherit: inherit, groups: groups}
>From the get_config.log
2016-07-06 15:35:38,804:CONFIG:host-r0c1-a:connecting to host:
xxxxx@host-r0c1-a:830
2016-07-06 15:35:39,047:ncclient.transport.ssh:Connected (version 2.0,
client OpenSSH_6.0)
2016-07-06 15:35:39,705:ncclient.transport.ssh:Authentication (publickey)
failed.
2016-07-06 15:35:39,802:ncclient.transport.ssh:Authentication (password)
successful!
2016-07-06 15:35:44,585:ncclient.transport.session:initialized:
session-id=25286 | server_capabilities=<dictionary-keyiterator object at
0x1c5d5d0>
2016-07-06 15:35:44,585:CONFIG:host-r0c1-a:Uncaught exception - please
report: 'str' object does not support item assignment
2016-07-06 15:35:44,586:ncclient.operations.rpc:Requesting 'CloseSession'
--
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/4e73a80e-da66-49bc-aa43-ffdfd7c78d26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.