Skip to content

Commit

Permalink
Cleaned up include netbox role
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonking3 committed Jan 10, 2024
1 parent c82a9cc commit c45132c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion playbooks/nso_harvest_native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
roles:
- ciscops.mdd.data
- ciscops.mdd.nso
- ciscops.mdd.netbox
tasks:

- name: Harvest Native Config
Expand Down
4 changes: 3 additions & 1 deletion roles/data/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit c45132c

Please sign in to comment.