netbox.netbox.netbox_platform – Create or delete platforms within Netbox¶
Note
This plugin is part of the netbox.netbox collection (version 3.1.1).
To install it use: ansible-galaxy collection install netbox.netbox
.
To use it in a playbook, specify: netbox.netbox.netbox_platform
.
New in version 0.1.0: of netbox.netbox
Synopsis¶
Creates or removes platforms from Netbox
Requirements¶
The below requirements are needed on the host that executes this module.
pynetbox
Parameters¶
Notes¶
Note
Tags should be defined as a YAML list
This should be ran with connection
local
and hostslocalhost
Examples¶
- name: "Test Netbox modules"
connection: local
hosts: localhost
gather_facts: False
tasks:
- name: Create platform within Netbox with only required information
netbox_platform:
netbox_url: http://netbox.local
netbox_token: thisIsMyToken
data:
name: Test Platform
state: present
- name: Create platform within Netbox with only required information
netbox_platform:
netbox_url: http://netbox.local
netbox_token: thisIsMyToken
data:
name: Test Platform All
manufacturer: Test Manufacturer
napalm_driver: ios
napalm_args:
global_delay_factor: 2
state: present
- name: Delete platform within netbox
netbox_platform:
netbox_url: http://netbox.local
netbox_token: thisIsMyToken
data:
name: Test Platform
state: absent
Return Values¶
Common return values are documented here, the following are the fields unique to this module: