Releases: netbox-community/ansible_modules
v1.2.0
v1.2.0
Major Changes
- nb_inventory - Add
dns_nameoption that addsdns_nameto the host whenTrueand device has a primary IP address. (#394) - nb_inventory - Add
statusas agroup_byoption. (398) - nb_inventory - Move around
extracted_primary_ipto allow forconfig_contextorcustom_fieldto overwite. (#377) - nb_inventory - Services are now a list of integers due to NetBox 2.10 changes. (#396)
- nb_lookup - Allow ID to be passed in and use
.getinstead of.filter. (#376) - nb_lookup - Allow
api_endpointandtokento be found via env. (#391)
Minor Changes
- nb_inventory - Added
statusas host_var. (359) - nb_inventory - Added documentation for using
keyed_groups. (#361) - nb_inventory - Allow to use virtual chassis name instead of device name. (#383)
- nb_lookup - Allow lookup of plugin endpoints. (#360)
- nb_lookup - Documentation update to show Fully Qualified Collection Name (FQCN). (#355)
- netbox_service - Add
portsoption for NetBox 2.10+ and convertporttoportsif NetBox 2.9 or lower. (#396) - netbox_virtual_machine - Added
commentsoption. (#380) - netbox_virtual_machine - Added
local_context_dataoption. (#357)
Bugfixes
- Version checks were failing due to converting "2.10" to a float made it an integer of 2.1 which broke version related logic. (#396)
- netbox_device_interface - Fixed copy pasta in documentation. (#371)
- netbox_ip_address - Updated documentation to show that
familyoption has been deprecated. (#388) - netbox_utils - Fixed typo for
circuits.circuitterminationsearches. (#367) - netbox_utils - Skip all modifications to
query_paramswhenuser_query_paramsis defined. (#389) - netbox_vlan - Fixed uniqueness for vlan searches to add
group. (#386)
New Modules
- netbox.netbox.netbox_tag - Creates or removes tags from Netbox
v1.1.0
v1.1.0
Minor Changes
- Add
follow_redirectsoption to inventory plugin (#323)
Bugfixes
- Prevent inventory plugin from failing on 403 and print warning message (#354)
- Update
netbox_ip_addressmodule to acceptassigned_objectto work with NetBox 2.9 (#345) - Update inventory plugin to properly associate IP address to interfaces with NetBox 2.9 (#334)
- Update inventory plugin to work with tags with NetBox 2.9 (#340)
- Update modules to be able to properly update tags to work with NetBox 2.9 (#345)
v1.0.2
v1.0.2
Bugfixes
- Add
virtual_machine_role=slugtoQUERY_TYPESto properly search for Virtual Machine roles and not use the defaultqsearch (#327) - Remove
devicebeingrequiredand implementedrequired_one_ofto allow eitherdeviceorvirtual_machineto be specified fornetbox_service(#326) - When tags specified, it prevents other data from being updated on the object. (#325)
v1.0.1
v1.0.0
v1.0.0
This release is to provide patch level updates on each new release of Ansible and the colections must be 1.0.0 for that to happen.
Bugfix
- #282 - Fix query_dict for device_bay/interface_template to use
devicetype_id - #300 - This exapands the fix to all
_templatemodules to usedevicetype_idfor the query_dict when attempting to resolve the search
Documentation
v0.3.1
v0.3.0
v0.3.0
Breaking Changes
-
#270 - To pass in integers via Ansible Jinja filters for a key in
datathat requires querying an endpoint is now done by making it a dictionary with anidkey.
The previous behavior was to just pass in an integer and it was converted when normalizing the data, but some people may have names that are all integers and those were being converted erroneously so we made the decision to change
the method to convert to an integer for the NetBox API.tasks: - name: Create device within NetBox with only required information netbox_device: netbox_url: http://netbox-demo.org:32768 netbox_token: 0123456789abcdef0123456789abcdef01234567 data: name: Test66 device_type: id: "{{ some_jinja_variable }}" device_role: Core Switch site: Test Site status: Staged state: present
-
#269 -
pynetboxchanged to usingrequests.Session()to manage the HTTP session which broke passing inssl_verifywhen building the NetBox API client.
This PR makespynetbox 5.0.4+the new required version ofpynetboxfor the Ansible modules and lookup plugin.
Enhancements
- #251 - Add
virtual_chassis,vc_position,vc_prioritytonetbox_deviceoptions - #258 - Add
local_context_dataandflatten_local_context_dataoption tonb_inventory - #258 - Add
local_context_dataoption tonetbox_device
Bugfix
- #242 - Compares tags as a set to prevent issues with order difference between user supplied tags and NetBox API
- #243 - Normalize descriptions to remove any extra whitespace
- #246 - Allows OR operations in API fitlers for
nb_lookupplugin - #254 - Normalize
mac_addressto upper case - #261 - Fixes typo for
CONVERT_TO_IDmapping innetbox_utilsfordcim.rearport - #265 - Fixes typo for
CONVERT_TO_IDmapping innetbox_utilsfordcim.powerportanddcim.poweroutlet - #262 - Build the
rear_portandrear_port_templatequery_params to properly find rear port
New Modules
- #251 -
netbox_cable - #251 -
netbox_device_bay_template - #251 -
netbox_virtual_chassis - #259 -
netbox_interface_template
Thanks to the following contributors
v0.2.3
v0.2.3
Documentation
- #226 - Fix indentation in README to prevent syntax error
- #180 - Fix documentation errors when using ansible-lint
validate-modules
Enchancements
- #216 - Allows private key to be passed in to
validate_certswithin modules - #187 - Adds
discoveredfield tonetbox_inventory_item - #219 - Adds
tenantfield tonetbox_cluster - #215 - Adds
query_paramsto all modules to allow users to define thequery_params - #238 - Better error handling if read-only token is provided for modules. Updated README as well to say that a
write-enabledtoken is required
Bug Fixes
- #214 - Fixes bug in inventory plugin that fails if there are either no virtual machines, but devices defined in NetBox or vice versa from failing when
fetch_allis set toFalse - #228 - Fixes bug in
netbox_prefixfailing when usingcheck_mode - #231 - Normalize any string values that are passed in via Jinja into an integer within the
_normalize_datamethod
New Modules
- #235 -
netbox_power_feed - #235 -
netbox_power_outlet - #235 -
netbox_power_outlet_template - #235 -
netbox_power_panel - #235 -
netbox_power_port - #235 -
netbox_power_port_template - #236 -
netbox_console_port - #236 -
netbox_console_port_template - #236 -
netbox_console_server_port - #236 -
netbox_console_server_port_template - #237 -
netbox_front_port - #237 -
netbox_front_port_template - #237 -
netbox_rear_port - #237 -
netbox_rear_port_template
v0.2.2
v0.2.2
Enhancements
- #211 - Changed
validate_certstorawto allow private keys to be passed in
Bug Fixes
v0.2.1
v0.2.1
Enhancements
- #141 - Added option to change host_vars to singular rather than having single element lists
- #190 - Added 21" width to netbox_rack
- #188 - Added cluster, cluster_type, and cluster_group to group_by option in inventory plugin
- #193 - Added option to flatten
config_contextandcustom_fields
Bug Fixes
- #193 - Added
typetonetbox_device_interfaceand deprecation notice forform_factor - #202 - Fixes inventory performance issues, properly shows virtual chassis masters. Also fixes the following #142, #143, #199, #200