Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'configuration' #31489

Closed
jwoogee opened this issue Oct 9, 2017 · 1 comment · Fixed by #31818
Closed
Labels
affects_2.4 This issue/PR affects Ansible v2.4 bug This issue/PR relates to a bug. module This issue/PR relates to a module. networking Network category support:network This issue/PR relates to code supported by the Ansible Network Team.
Milestone

Comments

@jwoogee
Copy link

jwoogee commented Oct 9, 2017

ISSUE TYPE
  • Bug Report
COMPONENT NAME

junos_facts

ANSIBLE VERSION
ansible 2.4.0.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/joe/ansible/library']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
CONFIGURATION

DEFAULT_CALLBACK_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/home/joe/ansible/playbooks/callback_plugins']
DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = [u'/home/joe/ansible/hosts']
DEFAULT_LOG_PATH(/etc/ansible/ansible.cfg) = /home/joe/ansible/ansible.log
DEFAULT_MODULE_PATH(/etc/ansible/ansible.cfg) = [u'/home/joe/ansible/library']
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
PERSISTENT_CONNECT_TIMEOUT(/etc/ansible/ansible.cfg) = 30

OS / ENVIRONMENT

Ubuntu 16.04

SUMMARY

When navigated through output of junos_facts config, which is json output, as soon as I navigate to ansible_facts.ansible_net_config.configuration I get the error,
'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'configuration'
I have seen similar errors with ansible.vars.unsafe_proxy but nothing matching my error.

STEPS TO REPRODUCE

run the playbook I have attached on Juniper SRX and error will appear. I have tested going into configuration as well as configuration[0].

---
- name: get junos config info
  junos_facts:
    provider: "{{ provider }}"
    gather_subset: config
    config_format: json
  register: srx_info
  
- name: print information
  debug:
    msg: "{{ srx_info.ansible_facts.ansible_net_config.configuration }}"
EXPECTED RESULTS

I expect to navigate to configuration, which is a list. I want to enter the list and navigate through configuration information to get results and do stuff with that information.

ACTUAL RESULTS
TASK [junos_info : get junos interface info] ******************************************************************************************************************************************************************
task path: /home/joe/ansible/playbooks/roles/junos_info/tasks/main.yml:2
<10.1.170.9> using connection plugin netconf
<10.1.170.9> socket_path: /home/joe/.ansible/pc/53f14f0353
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/network/junos/junos_facts.py
<10.1.170.9> ESTABLISH LOCAL CONNECTION FOR USER: joe
<10.1.170.9> EXEC /bin/sh -c 'echo ~ && sleep 0'
<10.1.170.9> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/joe/.ansible/tmp/ansible-tmp-1507575562.88-121003161397117 `" && echo ansible-tmp-1507575562.88-121003161397117="` echo /home/joe/.ansible/tmp/ansible-tmp-1507575562.88-121003161397117 `" ) && sleep 0'
<10.1.170.9> PUT /tmp/tmp73x6eK TO /home/joe/.ansible/tmp/ansible-tmp-1507575562.88-121003161397117/junos_facts.py
<10.1.170.9> EXEC /bin/sh -c 'chmod u+x /home/joe/.ansible/tmp/ansible-tmp-1507575562.88-121003161397117/ /home/joe/.ansible/tmp/ansible-tmp-1507575562.88-121003161397117/junos_facts.py && sleep 0'
<10.1.170.9> EXEC /bin/sh -c '/usr/bin/python /home/joe/.ansible/tmp/ansible-tmp-1507575562.88-121003161397117/junos_facts.py; rm -rf "/home/joe/.ansible/tmp/ansible-tmp-1507575562.88-121003161397117/" > /dev/null 2>&1 && sleep 0'
ok: [10.1.170.9] => {
    "ansible_facts": {
        "ansible_net_config": "{\n    \"configuration\" : [\n    {\n        \"attributes\" : {\"xmlns\" : \"http://xml.juniper.net/xnm/1.1/xnm\", \n                        \"junos:changed-seconds\" : \"1507556601\", \n                        \"junos:changed-localtime\" : \"2017-10-09 13:43:21 UTC\"\n                       }, \n        \"version\" : [\n        {\n            \"data\" : \"15.1X49-D80.4\"\n        }\n        ], \n        \"system\" : [\n        {\n            \"host-name\" : [\n            {\n                \"data\" : \"Client-A-Site-1\"\n            }\n            ], \n            \"root-authentication\" : [\n            {\n                \"encrypted-password\" : [\n                {\n                    \"data\" : \"$5$Ylowgyag$iztLzkvH93tXNa6PhXm7ZNOj74GDbSsda.kqcgAIy00\"\n                }\n                ]\n            }\n            ], \n            \"login\" : [\n            {\n                \"user\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"username\"\n                    }, \n                    \"uid\" : [\n                    {\n                        \"data\" : \"2000\"\n                    }\n                    ], \n                    \"class\" : [\n                    {\n                        \"data\" : \"super-user\"\n                    }\n                    ], \n                    \"authentication\" : [\n                    {\n                        \"encrypted-password\" : [\n                        {\n                            \"data\" : \"$5$jih26QX5$fA1AqKy0q8u5Bba/ICkzg3BFCBNBnvVkSlXs2f5Z9w6\"\n                        }\n                        ]\n                    }\n                    ]\n                }\n                ]\n            }\n            ], \n            \"services\" : [\n            {\n                \"ssh\" : [\n                {\n                }\n                ], \n                \"telnet\" : [\n                {\n                }\n                ], \n                \"netconf\" : [\n                {\n                    \"ssh\" : [\n                    {\n                    }\n                    ], \n                    \"traceoptions\" : [\n                    {\n                        \"flag\" : [\n                        {\n                            \"name\" :\n                            {\n                                \"data\" : \"all\"\n                            }\n                        }\n                        ]\n                    }\n                    ]\n                }\n                ], \n                \"rest\" : [\n                {\n                    \"http\" : [\n                    {\n                        \"addresses\" : [\n                        {\n                            \"data\" : \"10.1.170.9\"\n                        }\n                        ]\n                    }\n                    ], \n                    \"traceoptions\" : [\n                    {\n                        \"flag\" : [\n                        {\n                            \"data\" : \"all\"\n                        }\n                        ]\n                    }\n                    ], \n                    \"enable-explorer\" : [\n                    {\n                        \"data\" : null\n                    }\n                    ]\n                }\n                ], \n                \"webapi\" : [\n                {\n                    \"user\" : [\n                    {\n                        \"user-name\" : [\n                        {\n                            \"data\" : \"username\"\n                        }\n                        ], \n                        \"password\" : [\n                        {\n                            \"data\" : \"$9$rJEK87ws4GjqoaFn9C1IlKMW7VY24\"\n                        }\n                        ]\n                    }\n                    ], \n                    \"http\" : [\n                    {\n                    }\n                    ]\n                }\n                ]\n            }\n            ], \n            \"syslog\" : [\n            {\n                \"host\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"10.77.71.17\"\n                    }, \n                    \"contents\" : [\n                    {\n                        \"name\" :\n                        {\n                            \"data\" : \"any\"\n                        }, \n                        \"any\" : [\n                        {\n                            \"data\" : null\n                        }\n                        ]\n                    }\n                    ]\n                }\n                ], \n                \"file\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"Denied-Traffic\"\n                    }, \n                    \"contents\" : [\n                    {\n                        \"name\" :\n                        {\n                            \"data\" : \"any\"\n                        }, \n                        \"any\" : [\n                        {\n                            \"data\" : null\n                        }\n                        ]\n                    }\n                    ], \n                    \"match\" : [\n                    {\n                        \"data\" : \"RT_FLOW_SESSION_DENY\"\n                    }\n                    ]\n                }\n                ], \n                \"source-address\" : [\n                {\n                    \"data\" : \"10.85.64.21\"\n                }\n                ]\n            }\n            ]\n        }\n        ], \n        \"security\" : [\n        {\n            \"ike\" : [\n            {\n                \"proposal\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"IKE-PROPOSAL\"\n                    }, \n                    \"authentication-method\" : [\n                    {\n                        \"data\" : \"pre-shared-keys\"\n                    }\n                    ], \n                    \"dh-group\" : [\n                    {\n                        \"data\" : \"group5\"\n                    }\n                    ], \n                    \"authentication-algorithm\" : [\n                    {\n                        \"data\" : \"sha1\"\n                    }\n                    ], \n                    \"encryption-algorithm\" : [\n                    {\n                        \"data\" : \"aes-256-cbc\"\n                    }\n                    ], \n                    \"lifetime-seconds\" : [\n                    {\n                        \"data\" : \"28800\"\n                    }\n                    ]\n                }\n                ], \n                \"policy\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"IKE-POLICY\"\n                    }, \n                    \"mode\" : [\n                    {\n                        \"data\" : \"main\"\n                    }\n                    ], \n                    \"proposals\" : [\n                    {\n                        \"data\" : \"IKE-PROPOSAL\"\n                    }\n                    ], \n                    \"pre-shared-key\" : [\n                    {\n                        \"ascii-text\" : [\n                        {\n                            \"data\" : \"$9$GtUkmPfQn9p5QrvMWx7jHq.PQ\"\n                        }\n                        ]\n                    }\n                    ]\n                }\n                ], \n                \"gateway\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"HQ-1\"\n                    }, \n                    \"ike-policy\" : [\n                    {\n                        \"data\" : \"IKE-POLICY\"\n                    }\n                    ], \n                    \"address\" : [\n                    {\n                        \"data\" : \"10.1.170.20\"\n                    }\n                    ], \n                    \"local-identity\" : [\n                    {\n                        \"inet\" : [\n                        {\n                            \"identity-ipv4\" : [\n                            {\n                                \"data\" : \"10.1.170.9\"\n                            }\n                            ]\n                        }\n                        ]\n                    }\n                    ], \n                    \"external-interface\" : [\n                    {\n                        \"data\" : \"ge-0/0/0.0\"\n                    }\n                    ]\n                }\n                ]\n            }\n            ], \n            \"ipsec\" : [\n            {\n                \"proposal\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"IPSEC-PROPOSAL\"\n                    }, \n                    \"protocol\" : [\n                    {\n                        \"data\" : \"esp\"\n                    }\n                    ], \n                    \"authentication-algorithm\" : [\n                    {\n                        \"data\" : \"hmac-sha1-96\"\n                    }\n                    ], \n                    \"encryption-algorithm\" : [\n                    {\n                        \"data\" : \"aes-256-cbc\"\n                    }\n                    ], \n                    \"lifetime-seconds\" : [\n                    {\n                        \"data\" : \"3600\"\n                    }\n                    ]\n                }\n                ], \n                \"policy\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"IPSEC-POLICY\"\n                    }, \n                    \"proposals\" : [\n                    {\n                        \"data\" : \"IPSEC-PROPOSAL\"\n                    }\n                    ]\n                }\n                ], \n                \"vpn\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"HQ-1\"\n                    }, \n                    \"bind-interface\" : [\n                    {\n                        \"data\" : \"st0.0\"\n                    }\n                    ], \n                    \"ike\" : [\n                    {\n                        \"gateway\" : [\n                        {\n                            \"data\" : \"HQ-1\"\n                        }\n                        ], \n                        \"proxy-identity\" : [\n                        {\n                            \"remote\" : [\n                            {\n                                \"data\" : \"10.85.50.2/32\"\n                            }\n                            ], \n                            \"service\" : [\n                            {\n                                \"data\" : \"junos-gre\"\n                            }\n                            ]\n                        }\n                        ], \n                        \"ipsec-policy\" : [\n                        {\n                            \"data\" : \"IPSEC-POLICY\"\n                        }\n                        ]\n                    }\n                    ], \n                    \"establish-tunnels\" : [\n                    {\n                        \"data\" : \"immediately\"\n                    }\n                    ]\n                }\n                ]\n            }\n            ], \n            \"flow\" : [\n            {\n                \"tcp-mss\" : [\n                {\n                    \"ipsec-vpn\" : [\n                    {\n                        \"mss\" : [\n                        {\n                            \"data\" : \"1350\"\n                        }\n                        ]\n                    }\n                    ]\n                }\n                ]\n            }\n            ], \n            \"policies\" : [\n            {\n                \"policy\" : [\n                {\n                    \"from-zone-name\" :\n                    {\n                        \"data\" : \"private\"\n                    }, \n                    \"to-zone-name\" :\n                    {\n                        \"data\" : \"private\"\n                    }, \n                    \"policy\" : [\n                    {\n                        \"name\" :\n                        {\n                            \"data\" : \"permit-all\"\n                        }, \n                        \"match\" : [\n                        {\n                            \"source-address\" : [\n                            {\n                                \"data\" : \"any\"\n                            }\n                            ], \n                            \"destination-address\" : [\n                            {\n                                \"data\" : \"any\"\n                            }\n                            ], \n                            \"application\" : [\n                            {\n                                \"data\" : \"any\"\n                            }\n                            ]\n                        }\n                        ], \n                        \"then\" : [\n                        {\n                            \"permit\" : [\n                            {\n                            }\n                            ]\n                        }\n                        ]\n                    }\n                    ]\n                }\n                ]\n            }\n            ], \n            \"zones\" : [\n            {\n                \"security-zone\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"public\"\n                    }, \n                    \"host-inbound-traffic\" : [\n                    {\n                        \"system-services\" : [\n                        {\n                            \"name\" :\n                            {\n                                \"data\" : \"all\"\n                            }\n                        }\n                        ], \n                        \"protocols\" : [\n                        {\n                            \"name\" :\n                            {\n                                \"data\" : \"all\"\n                            }\n                        }\n                        ]\n                    }\n                    ], \n                    \"interfaces\" : [\n                    {\n                        \"name\" :\n                        {\n                            \"data\" : \"ge-0/0/0.0\"\n                        }\n                    }\n                    ]\n                }, \n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"private\"\n                    }, \n                    \"host-inbound-traffic\" : [\n                    {\n                        \"system-services\" : [\n                        {\n                            \"name\" :\n                            {\n                                \"data\" : \"all\"\n                            }\n                        }\n                        ], \n                        \"protocols\" : [\n                        {\n                            \"name\" :\n                            {\n                                \"data\" : \"all\"\n                            }\n                        }\n                        ]\n                    }\n                    ], \n                    \"interfaces\" : [\n                    {\n                        \"name\" :\n                        {\n                            \"data\" : \"st0.0\"\n                        }\n                    }, \n                    {\n                        \"name\" :\n                        {\n                            \"data\" : \"gr-0/0/0.0\"\n                        }\n                    }, \n                    {\n                        \"name\" :\n                        {\n                            \"data\" : \"ge-0/0/1.0\"\n                        }\n                    }\n                    ]\n                }\n                ]\n            }\n            ]\n        }\n        ], \n        \"interfaces\" : [\n        {\n            \"interface\" : [\n            {\n                \"name\" :\n                {\n                    \"data\" : \"ge-0/0/0\"\n                }, \n                \"unit\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"0\"\n                    }, \n                    \"family\" : [\n                    {\n                        \"inet\" : [\n                        {\n                            \"address\" : [\n                            {\n                                \"name\" :\n                                {\n                                    \"data\" : \"10.1.170.9/22\"\n                                }\n                            }\n                            ]\n                        }\n                        ]\n                    }\n                    ]\n                }\n                ]\n            }, \n            {\n                \"name\" :\n                {\n                    \"data\" : \"gr-0/0/0\"\n                }, \n                \"unit\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"0\"\n                    }, \n                    \"clear-dont-fragment-bit\" : [\n                    {\n                        \"data\" : null\n                    }\n                    ], \n                    \"tunnel\" : [\n                    {\n                        \"source\" : [\n                        {\n                            \"data\" : \"10.85.64.21\"\n                        }\n                        ], \n                        \"destination\" : [\n                        {\n                            \"data\" : \"10.85.50.2\"\n                        }\n                        ], \n                        \"allow-fragmentation\" : [\n                        {\n                            \"data\" : null\n                        }\n                        ]\n                    }\n                    ], \n                    \"family\" : [\n                    {\n                        \"inet\" : [\n                        {\n                            \"mtu\" : [\n                            {\n                                \"data\" : \"1400\"\n                            }\n                            ], \n                            \"address\" : [\n                            {\n                                \"name\" :\n                                {\n                                    \"data\" : \"172.23.1.6/30\"\n                                }\n                            }\n                            ]\n                        }\n                        ]\n                    }\n                    ]\n                }\n                ]\n            }, \n            {\n                \"name\" :\n                {\n                    \"data\" : \"ge-0/0/1\"\n                }, \n                \"vlan-tagging\" : [\n                {\n                    \"data\" : null\n                }\n                ], \n                \"unit\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"0\"\n                    }, \n                    \"vlan-id\" : [\n                    {\n                        \"data\" : \"1\"\n                    }\n                    ], \n                    \"family\" : [\n                    {\n                        \"inet\" : [\n                        {\n                            \"address\" : [\n                            {\n                                \"name\" :\n                                {\n                                    \"data\" : \"192.168.3.1/24\"\n                                }\n                            }\n                            ]\n                        }\n                        ]\n                    }\n                    ]\n                }, \n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"201\"\n                    }, \n                    \"vlan-id\" : [\n                    {\n                        \"data\" : \"210\"\n                    }\n                    ], \n                    \"family\" : [\n                    {\n                        \"inet\" : [\n                        {\n                            \"address\" : [\n                            {\n                                \"name\" :\n                                {\n                                    \"data\" : \"10.12.1.254/24\"\n                                }\n                            }\n                            ]\n                        }\n                        ]\n                    }\n                    ]\n                }\n                ]\n            }, \n            {\n                \"name\" :\n                {\n                    \"data\" : \"lo0\"\n                }, \n                \"unit\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"10\"\n                    }, \n                    \"family\" : [\n                    {\n                        \"inet\" : [\n                        {\n                            \"address\" : [\n                            {\n                                \"name\" :\n                                {\n                                    \"data\" : \"10.85.64.21/32\"\n                                }\n                            }\n                            ]\n                        }\n                        ]\n                    }\n                    ]\n                }\n                ]\n            }, \n            {\n                \"name\" :\n                {\n                    \"data\" : \"st0\"\n                }, \n                \"unit\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"0\"\n                    }, \n                    \"family\" : [\n                    {\n                        \"inet\" : [\n                        {\n                        }\n                        ]\n                    }\n                    ]\n                }\n                ]\n            }\n            ]\n        }\n        ], \n        \"routing-options\" : [\n        {\n            \"static\" : [\n            {\n                \"route\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"0.0.0.0/0\"\n                    }, \n                    \"next-hop\" : [\n                    {\n                        \"data\" : \"10.1.170.1\"\n                    }\n                    ]\n                }, \n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"10.85.50.2/32\"\n                    }, \n                    \"next-hop\" : [\n                    {\n                        \"data\" : \"st0.0\"\n                    }\n                    ]\n                }\n                ]\n            }\n            ], \n            \"autonomous-system\" : [\n            {\n                \"as-number\" : [\n                {\n                    \"data\" : \"65002\"\n                }\n                ]\n            }\n            ]\n        }\n        ], \n        \"protocols\" : [\n        {\n            \"bgp\" : [\n            {\n                \"group\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"external-peers\"\n                    }, \n                    \"type\" : [\n                    {\n                        \"data\" : \"external\"\n                    }\n                    ], \n                    \"export\" : [\n                    {\n                        \"data\" : \"send-filtered-direct\"\n                    }\n                    ], \n                    \"peer-as\" : [\n                    {\n                        \"data\" : \"65000\"\n                    }\n                    ], \n                    \"neighbor\" : [\n                    {\n                        \"name\" :\n                        {\n                            \"data\" : \"172.23.1.5\"\n                        }\n                    }\n                    ]\n                }\n                ]\n            }\n            ]\n        }\n        ], \n        \"policy-options\" : [\n        {\n            \"prefix-list\" : [\n            {\n                \"name\" :\n                {\n                    \"data\" : \"bgp-adv\"\n                }, \n                \"prefix-list-item\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"192.168.3.0/24\"\n                    }\n                }\n                ]\n            }\n            ], \n            \"policy-statement\" : [\n            {\n                \"name\" :\n                {\n                    \"data\" : \"send-filtered-direct\"\n                }, \n                \"term\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"10\"\n                    }, \n                    \"from\" : [\n                    {\n                        \"protocol\" : [\n                        {\n                            \"data\" : \"direct\"\n                        }\n                        ], \n                        \"prefix-list\" : [\n                        {\n                            \"name\" :\n                            {\n                                \"data\" : \"bgp-adv\"\n                            }\n                        }\n                        ]\n                    }\n                    ], \n                    \"then\" : [\n                    {\n                        \"accept\" : [\n                        {\n                            \"data\" : null\n                        }\n                        ]\n                    }\n                    ]\n                }\n                ]\n            }\n            ]\n        }\n        ], \n        \"routing-instances\" : [\n        {\n            \"instance\" : [\n            {\n                \"name\" :\n                {\n                    \"data\" : \"201\"\n                }, \n                \"interface\" : [\n                {\n                    \"name\" :\n                    {\n                        \"data\" : \"ge-0/0/1.201\"\n                    }\n                }\n                ], \n                \"routing-options\" : [\n                {\n                    \"static\" : [\n                    {\n                        \"route\" : [\n                        {\n                            \"name\" :\n                            {\n                                \"data\" : \"0.0.0.0/0\"\n                            }, \n                            \"next-hop\" : [\n                            {\n                                \"data\" : \"10.12.1.55\"\n                            }\n                            ]\n                        }, \n                        {\n                            \"name\" :\n                            {\n                                \"data\" : \"192.168.108.1/32\"\n                            }, \n                            \"next-hop\" : [\n                            {\n                                \"data\" : \"10.12.1.253\"\n                            }\n                            ]\n                        }, \n                        {\n                            \"name\" :\n                            {\n                                \"data\" : \"10.88.108.0/24\"\n                            }, \n                            \"next-hop\" : [\n                            {\n                                \"data\" : \"10.12.1.253\"\n                            }\n                            ]\n                        }, \n                        {\n                            \"name\" :\n                            {\n                                \"data\" : \"172.1.108.1/32\"\n                            }, \n                            \"next-hop\" : [\n                            {\n                                \"data\" : \"10.12.1.253\"\n                            }\n                            ]\n                        }, \n                        {\n                            \"name\" :\n                            {\n                                \"data\" : \"10.99.108.0/24\"\n                            }, \n                            \"next-hop\" : [\n                            {\n                                \"data\" : \"10.12.1.253\"\n                            }\n                            ]\n                        }\n                        ]\n                    }\n                    ]\n                }\n                ]\n            }\n            ]\n        }\n        ]\n    }\n    ]\n}",
        "ansible_net_gather_subset": [
            "default",
            "config"
        ],
        "ansible_net_hostname": "Client-A-Site-1",
        "ansible_net_model": "vsrx",
        "ansible_net_serialnum": "BC5596152867",
        "ansible_net_version": "15.1X49-D80.4"
    },
    "changed": false,
    "failed": false,
    "invocation": {
        "module_args": {
            "config_format": "json",
            "gather_subset": [
                "config"
            ],
            "host": null,
            "password": null,
            "port": null,
            "provider": {
                "host": "10.1.170.9",
                "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "port": null,
                "ssh_keyfile": null,
                "timeout": null,
                "transport": null,
                "username": "username"
            },
            "ssh_keyfile": null,
            "timeout": null,
            "transport": null,
            "username": null
        }
    }
}

TASK [junos_info : print information] *************************************************************************************************************************************************************************
task path: /home/joe/ansible/playbooks/roles/junos_info/tasks/main.yml:9
fatal: [10.1.170.9]: FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error was: 'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'configuration'\n\nThe error appears to have been in '/home/joe/ansible/playbooks/roles/junos_info/tasks/main.yml': line 9, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: print information\n  ^ here\n\nexception type: <class 'ansible.errors.AnsibleUndefinedVariable'>\nexception: 'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'configuration'"
}
        to retry, use: --limit @/home/joe/ansible/playbooks/junos_test.retry

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


@ansibot
Copy link
Contributor

ansibot commented Oct 9, 2017

@ansibot ansibot added affects_2.4 This issue/PR affects Ansible v2.4 bug_report module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. networking Network category support:network This issue/PR relates to code supported by the Ansible Network Team. labels Oct 9, 2017
@gundalow gundalow assigned gundalow and kedarkekan and unassigned gundalow Oct 11, 2017
@gundalow gundalow removed the needs_triage Needs a first human triage before being processed. label Oct 11, 2017
@gundalow gundalow added this to the 2.5.0 milestone Oct 11, 2017
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 7, 2018
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.4 This issue/PR affects Ansible v2.4 bug This issue/PR relates to a bug. module This issue/PR relates to a module. networking Network category support:network This issue/PR relates to code supported by the Ansible Network Team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants