diff --git a/playbooks/nso_harvest_native.yml b/playbooks/nso_harvest_native.yml index cfb40cd..07f9a86 100644 --- a/playbooks/nso_harvest_native.yml +++ b/playbooks/nso_harvest_native.yml @@ -5,7 +5,6 @@ roles: - ciscops.mdd.data - ciscops.mdd.nso - - ciscops.mdd.netbox tasks: - name: Harvest Native Config diff --git a/roles/data/tasks/main.yml b/roles/data/tasks/main.yml index c37c1ff..a7d2260 100644 --- a/roles/data/tasks/main.yml +++ b/roles/data/tasks/main.yml @@ -12,5 +12,7 @@ set_fact: mdd_data: "{{ mdd_combine_output.mdd_data | default({}) }}" -- include_tasks: netbox.yml +- block: + - include_role: ciscops.mdd.netbox + - include_tasks: netbox.yml when: netbox_api is defined or lookup('env', 'NETBOX_API', default=false)