Fix some linting errors

This commit is contained in:
2024-02-08 13:18:07 -05:00
parent a51c8ed2ff
commit 7192063d53
16 changed files with 25 additions and 517 deletions

View File

@@ -2,8 +2,6 @@
- name: Collect Netbox Data
hosts: role_core-switch
gather_facts: false
collections:
- netbox.netbox
vars:
api_endpoint: "{{ lookup('env','NETBOX_API') }}"
api_token: "{{ lookup('env', 'NETBOX_TOKEN') }}"
@@ -11,9 +9,11 @@
tasks:
# - name: Gather Device Information
# set_fact:
# device_info: "{{ query('netbox.netbox.nb_lookup', 'devices', api_filter='name=' + inventory_hostname, api_endpoint=api_endpoint, token=api_token )[0] }}"
- debug:
var: interfaces
# device_info: "{{ query('netbox.netbox.nb_lookup', 'devices', api_filter='name=' + inventory_hostname, api_endpoint=api_endpoint,\
# token=api_token )[0] }}"
- name: Dump debug info
ansible.builtin.debug:
var: interfaces
# - name: Obtain list of devices from Netbox
# debug: