-
Couldn't load subscription status.
- Fork 167
Closed
Description
Juniper.junos breaks with Ansible 2.0.0.2
Ansible: 2.0.0.2 from Hombrew (http://brew.sh) build: (Homebrew/legacy-homebrew@81ec8e6)
junos-eznc==1.3.1 (installed directly from pip)
Error on ansible 2.0.0.2
An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
File "/Users/test/.ansible/tmp/ansible-tmp-1454709965.92-125910454178634/junos_get_facts", line 2143, in <module>
main()
File "/Users/test/.ansible/tmp/ansible-tmp-1454709965.92-125910454178634/junos_get_facts", line 207, in main
module.exit_json(**m_results)
File "/Users/test/.ansible/tmp/ansible-tmp-1454709965.92-125910454178634/junos_get_facts", line 1743, in exit_json
kwargs = remove_values(kwargs, self.no_log_values)
File "/Users/test/.ansible/tmp/ansible-tmp-1454709965.92-125910454178634/junos_get_facts", line 626, in remove_values
return dict((k, remove_values(v, no_log_strings)) for k, v in value.items())
File "/Users/test/.ansible/tmp/ansible-tmp-1454709965.92-125910454178634/junos_get_facts", line 626, in <genexpr>
return dict((k, remove_values(v, no_log_strings)) for k, v in value.items())
File "/Users/test/.ansible/tmp/ansible-tmp-1454709965.92-125910454178634/junos_get_facts", line 626, in remove_values
return dict((k, remove_values(v, no_log_strings)) for k, v in value.items())
File "/Users/test/.ansible/tmp/ansible-tmp-1454709965.92-125910454178634/junos_get_facts", line 626, in <genexpr>
return dict((k, remove_values(v, no_log_strings)) for k, v in value.items())
File "/Users/test/.ansible/tmp/ansible-tmp-1454709965.92-125910454178634/junos_get_facts", line 635, in remove_values
raise TypeError('Value of unknown type: %s, %s' % (type(value), value))
TypeError: Value of unknown type: <class 'jnpr.junos.facts.swver.version_info'>, junos.version_info(major=(11, 4), type=R, minor=5, build=7)
fatal: [<host ip removed>]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "junos_get_facts"}, "parsed": false}Rollback to ansible 1.9.4 resolves issue
# uninstall Ansible 2
brew uninstall ansible
# Homebrew install Ansible 1.9
brew tap homebrew/versions
brew install ansible19
## fix Juniper.junos role install
ansible-galaxy install Juniper.junos --forceMetadata
Metadata
Assignees
Labels
No labels