v3.0.0
v3.0.0
This is a breaking change to accommodate the changes made by ansible-core 2.11 / Ansible 4 that changed the behavior of the arg spec verification.
Major Changes
- (#66) Remove data sub-key from modules
Minor Changes
- (#75) Device Interface module supports custom_fields
Porting Guide
To move from the 1.x/2.x release to 3.0.0, the following changes are required:
- Move any data parameter items into the module parameters.
Porting Examples
- name: "05 - ADD DEVICES"
networktocode.nautobot.device:
url: "{{ lookup('env', 'NAUTOBOT_URL') }}"
token: "{{ lookup('env', 'NAUTOBOT_TOKEN') }}"
data:
name: "{{ item['name'] }}"
site: "{{ item['site'] }}"
device_role: "{{ item['device_role'] }}"
device_type: "{{ item['device_type'] }}"
platform: "IOS"
status: "Active" # Newly required for Nautobot, a status of some kind
loop: "{{ devices }}"
Becomes
- name: "05 - ADD DEVICES"
networktocode.nautobot.device:
url: "{{ lookup('env', 'NAUTOBOT_URL') }}"
token: "{{ lookup('env', 'NAUTOBOT_TOKEN') }}"
name: "{{ item['name'] }}"
site: "{{ item['site'] }}"
device_role: "{{ item['device_role'] }}"
device_type: "{{ item['device_type'] }}"
platform: "IOS"
status: "Active" # Newly required for Nautobot, a status of some kind
loop: "{{ devices }}"
All the nested items in under data are now at the same level as URL and Token, removing the data parameter.