Merge "Junos switch: update ncclient to 0.6.7+"
This commit is contained in:
@@ -2,12 +2,13 @@
|
|||||||
# The NETCONF client ncclient is required. This must be installed on the
|
# The NETCONF client ncclient is required. This must be installed on the
|
||||||
# Ansible control host where the ansible-connection subprocess is executed.
|
# Ansible control host where the ansible-connection subprocess is executed.
|
||||||
- name: Ensure python dependencies are installed
|
- name: Ensure python dependencies are installed
|
||||||
|
vars:
|
||||||
|
# NOTE(mgoddard): 0.6.7 includes a fix for host key checking:
|
||||||
|
# https://github.com/ncclient/ncclient/issues/302.
|
||||||
|
ncclient_version: ">=0.6.7,<0.7.0"
|
||||||
local_action:
|
local_action:
|
||||||
module: pip
|
module: pip
|
||||||
# NOTE(mgoddard): Restrict ncclient to 0.6.2 or less, due to a bug in host
|
name: "ncclient{{ ncclient_version }}"
|
||||||
# key checking: https://github.com/ncclient/ncclient/issues/302.
|
|
||||||
# TODO(mgoddard): Remove this restriction when ncclient has been fixed.
|
|
||||||
name: ncclient<=0.6.2
|
|
||||||
virtualenv: "{{ lookup('env', 'VIRTUAL_ENV') | default(omit, true) }}"
|
virtualenv: "{{ lookup('env', 'VIRTUAL_ENV') | default(omit, true) }}"
|
||||||
become: "{{ lookup('env', 'VIRTUAL_ENV') == None }}"
|
become: "{{ lookup('env', 'VIRTUAL_ENV') == None }}"
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|||||||
Reference in New Issue
Block a user