Skip to content

Releases: netbox-community/ansible_modules

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

v0.2.0

21 Apr 01:51
d035cda
Compare
Choose a tag to compare

v0.2.0

Breaking Changes

  • #139 - Change ip-addresses key in netbox inventory plugin to ip_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 in netbox_device_interface and netbox_vm_interface. This allows the API to return any error if an invalid choice is selected for mode.
  • #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 to netbox_virtual_machine
  • #140 - Add device_query_filters and vm_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!