Releases: netbox-community/ansible_modules
v1.1.0
v1.1.0
Minor Changes
- Add
follow_redirects
option to inventory plugin (#323)
Bugfixes
- Prevent inventory plugin from failing on 403 and print warning message (#354)
- Update
netbox_ip_address
module to acceptassigned_object
to 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=slug
toQUERY_TYPES
to properly search for Virtual Machine roles and not use the defaultq
search (#327) - Remove
device
beingrequired
and implementedrequired_one_of
to allow eitherdevice
orvirtual_machine
to 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
_template
modules to usedevicetype_id
for 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
data
that requires querying an endpoint is now done by making it a dictionary with anid
key.
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 -
pynetbox
changed to usingrequests.Session()
to manage the HTTP session which broke passing inssl_verify
when building the NetBox API client.
This PR makespynetbox 5.0.4+
the new required version ofpynetbox
for the Ansible modules and lookup plugin.
Enhancements
- #251 - Add
virtual_chassis
,vc_position
,vc_priority
tonetbox_device
options - #258 - Add
local_context_data
andflatten_local_context_data
option tonb_inventory
- #258 - Add
local_context_data
option 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_lookup
plugin - #254 - Normalize
mac_address
to upper case - #261 - Fixes typo for
CONVERT_TO_ID
mapping innetbox_utils
fordcim.rearport
- #265 - Fixes typo for
CONVERT_TO_ID
mapping innetbox_utils
fordcim.powerport
anddcim.poweroutlet
- #262 - Build the
rear_port
andrear_port_template
query_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_certs
within modules - #187 - Adds
discovered
field tonetbox_inventory_item
- #219 - Adds
tenant
field tonetbox_cluster
- #215 - Adds
query_params
to 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-enabled
token 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_all
is set toFalse
- #228 - Fixes bug in
netbox_prefix
failing when usingcheck_mode
- #231 - Normalize any string values that are passed in via Jinja into an integer within the
_normalize_data
method
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_certs
toraw
to 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_context
andcustom_fields
Bug Fixes
- #193 - Added
type
tonetbox_device_interface
and deprecation notice forform_factor
- #202 - Fixes inventory performance issues, properly shows virtual chassis masters. Also fixes the following #142, #143, #199, #200
Thanks to the following contributors
v0.2.0
v0.2.0
Breaking Changes
- #139 - Change
ip-addresses
key in netbox inventory plugin toip_addresses
.
Bug Fixes
- #45 - Allow integers to be passed in via Jinja string to properly convert back to integer
- #158 - Removed choices within argument_spec for
mode
innetbox_device_interface
andnetbox_vm_interface
. This allows the API to return any error if an invalid choice is selected formode
. - #151 - Fixed dict iteration error for Python3.8
- #167 - Updated rack width choices for latest NetBox version
- #166 - Properly find LAG if defined just as a string rather than dictionary with the relevant data
- #174 - Allow services to be created with a different protocol
Enhancements
- #136 - Added
raw_output
option to netbox lookup plugin to return the exact output from the API with no doctoring - #105 - Added
update_vc_child
option to netbox_device_interface to allow child interfaces to be updated if device specified is the master device within the virtual chassis - #143 - Added
services
option to the netbox inventory to allow users to toggle whether services are included or not - #138 - Added
group_names_raw
option to the netbox inventory to allow users have the group names be the slug rather than prepending the group name with the type - #170 - Add
custom_fields
tonetbox_virtual_machine
- #140 - Add
device_query_filters
andvm_query_filters
to allow users to specify query filters for the specific type - #183 - Remove token from being required for nb_lookup as some NetBox setups don't require authorization for GET functions
- #177 - Remove token from being required for nb_inventory as some NetBox setups don't require authorization for GET functions
Ansible Core Related Changes
- #124 - Added netbox_interface from Ansible core, but the module is deprecated in favor of netbox_device_interface and netbox_vm_interface
Thanks for the following contributors!
- @DouglasHeriot
- @toerb
- @malbertus
- @ThomasADavis
- @Duck-dave
- @Jamboon-beurre
- @smolz
- @Yannis100
- @jqueuniet
- @ignatenkobrain
- @pugnacity
- @martink2