Skip to content

Releases: netbox-community/ansible_modules

v1.2.0

28 Dec 00:41
c2c1072
Compare
Choose a tag to compare

v1.2.0

Major Changes

  • nb_inventory - Add dns_name option that adds dns_name to the host when True and device has a primary IP address. (#394)
  • nb_inventory - Add status as a group_by option. (398)
  • nb_inventory - Move around extracted_primary_ip to allow for config_context or custom_field to 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 .get instead of .filter. (#376)
  • nb_lookup - Allow api_endpoint and token to be found via env. (#391)

Minor Changes

  • nb_inventory - Added status as 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 ports option for NetBox 2.10+ and convert port to ports if NetBox 2.9 or lower. (#396)
  • netbox_virtual_machine - Added comments option. (#380)
  • netbox_virtual_machine - Added local_context_data option. (#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 family option has been deprecated. (#388)
  • netbox_utils - Fixed typo for circuits.circuittermination searches. (#367)
  • netbox_utils - Skip all modifications to query_params when user_query_params is 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

07 Oct 03:48
43aba39
Compare
Choose a tag to compare

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 accept assigned_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

30 Aug 01:52
602e0ec
Compare
Choose a tag to compare

v1.0.2

Bugfixes

  • Add virtual_machine_role=slug to QUERY_TYPES to properly search for Virtual Machine roles and not use the default q search (#327)
  • Remove device being required and implemented required_one_of to allow either device or virtual_machine to be specified for netbox_service (#326)
  • When tags specified, it prevents other data from being updated on the object. (#325)

v1.0.1

26 Aug 03:35
ff34e4e
Compare
Choose a tag to compare

v1.0.1

Minor Changes

  • Inventory - Add group_by option rack_role and rack_group
  • Inventory - Add group_by option services (#286)

Bugfixes

  • Fix nb_inventory cache for ip addresses (#276)
  • Return HTTPError body output when encountering HTTP errors (#294)

v1.0.0

10 Aug 02:21
edd32b3
Compare
Choose a tag to compare

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 use devicetype_id for the query_dict when attempting to resolve the search

Documentation

  • #283 - Add documentation of using the inventory to the README
  • #292 - Add documentation with correct path when using lookup plugin
  • #296 - Document known issue for MacOS with ERROR! A worker was found in dead state

v0.3.1

13 Jul 14:25
fd760ea
Compare
Choose a tag to compare

v0.3.1

Bugfix

  • #273 - Default validate_certs to True in nb_lookup

v0.3.0

12 Jul 19:06
5e3bb17
Compare
Choose a tag to compare

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 an id 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 using requests.Session() to manage the HTTP session which broke passing in ssl_verify when building the NetBox API client.
    This PR makes pynetbox 5.0.4+ the new required version of pynetbox for the Ansible modules and lookup plugin.

Enhancements

  • #251 - Add virtual_chassis, vc_position, vc_priority to netbox_device options
  • #258 - Add local_context_data and flatten_local_context_data option to nb_inventory
  • #258 - Add local_context_data option to netbox_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 in netbox_utils for dcim.rearport
  • #265 - Fixes typo for CONVERT_TO_ID mapping in netbox_utils for dcim.powerport and dcim.poweroutlet
  • #262 - Build the rear_port and rear_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

20 Jun 17:35
8cbbfde
Compare
Choose a tag to compare

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 to netbox_inventory_item
  • #219 - Adds tenant field to netbox_cluster
  • #215 - Adds query_params to all modules to allow users to define the query_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 to False
  • #228 - Fixes bug in netbox_prefix failing when using check_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

06 Jun 16:26
9d8449f
Compare
Choose a tag to compare

v0.2.2

Enhancements

  • #211 - Changed validate_certs to raw to allow private keys to be passed in

Bug Fixes

  • #208 - Added type to ALLOWED_QUERY_PARAMS for interface searches
  • #201 - Added interfaces to ALLOWED_QUERY_PARAMS for ip addresses searches
  • #221 - Remove rack as a choice when createing virtual machines

v0.2.1

19 May 15:12
c5bbcd5
Compare
Choose a tag to compare

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 and custom_fields

Bug Fixes

  • #193 - Added type to netbox_device_interface and deprecation notice for form_factor
  • #202 - Fixes inventory performance issues, properly shows virtual chassis masters. Also fixes the following #142, #143, #199, #200

Thanks to the following contributors