Fix some linting errors
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user