Open
Description
NetBox version
v3.20.0
Feature type
Change to existing Module
Proposed functionality
I want to use NETBOX_API
, NETBOX_TOKEN
, NETBOX_API_KEY
environment variables in modules. Like the nb_inventory
inventory plugin.
Use case
The netbox_url
and netbox_token
options for each module will be no longer needed.
Example:
- name: "Test NetBox modules"
connection: local
hosts: localhost
gather_facts: false
environment: # or export command or custom credential
NETBOX_API: http://netbox.local
NETBOX_TOKEN: thisIsMyToken
tasks:
- name: Create ASN within NetBox with only required information
netbox.netbox.netbox_asn:
data:
asn: 1111111111
rir: RFC1111
description: test ASN
state: present
- name: Delete ASN within netbox
netbox.netbox.netbox_asn:
data:
asn: 1111111111
state: absent
I want to avoid duplicate settings it using a method other than module defaults
.
External dependencies
N/A
Activity