Skip to content
Snippets Groups Projects
Commit 7b8abfb6 authored by Pierre Riteau's avatar Pierre Riteau
Browse files

Install ncclient even in check mode

When running `kayobe physical network configure --check` against Juniper
switches, Kayobe may fail with the following error:

    Failed to import the required Python library (ncclient)

This is because the ncclient installation task is skipped by check mode.

Change-Id: I643f54a67edfe22a3fd5c86f157bd1246d617399
parent 5cd17d4f
No related branches found
No related tags found
Loading
......@@ -11,6 +11,7 @@
name: "ncclient{{ ncclient_version }}"
virtualenv: "{{ lookup('env', 'VIRTUAL_ENV') | default(omit, true) }}"
become: "{{ lookup('env', 'VIRTUAL_ENV') == None }}"
check_mode: false
run_once: true
- name: Ensure Juniper switches are configured
......
---
fixes:
- |
Installs ``ncclient`` dependency for Juniper switch configuration when
using Ansible check mode.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment