networktocode / networktocode.nautobot / 4.5.0 / module / platform Create or delete platforms within Nautobot | "added in version" 1.0.0 of networktocode.nautobot" Authors: Mikhail Yohman (@FragmentedPacket)networktocode.nautobot.platform (4.5.0) — module
Install with ansible-galaxy collection install networktocode.nautobot:==4.5.0
collections: - name: networktocode.nautobot version: 4.5.0
Creates or removes platforms from Nautobot
- name: "Test Nautobot modules" connection: local hosts: localhost gather_facts: False tasks: - name: Create platform within Nautobot with only required information networktocode.nautobot.platform: url: http://nautobot.local token: thisIsMyToken name: Test Platform state: present - name: Create platform within Nautobot with only required information networktocode.nautobot.platform: url: http://nautobot.local token: thisIsMyToken name: Test Platform All manufacturer: Test Manufacturer napalm_driver: ios napalm_args: global_delay_factor: 2 state: present - name: Delete platform within nautobot networktocode.nautobot.platform: url: http://nautobot.local token: thisIsMyToken name: Test Platform state: absent
url: description: - 'The URL of the Nautobot instance resolvable by the Ansible host (for example: http://nautobot.example.com:8000)' required: true type: str name: description: - The name of the platform required: true type: str version_added: 3.0.0 version_added_collection: networktocode.nautobot slug: description: - The slugified version of the name or custom slug. - This is auto-generated following Nautobot rules if not provided required: false type: str version_added: 3.0.0 version_added_collection: networktocode.nautobot state: choices: - absent - present default: present description: - Use C(present) or C(absent) for adding or removing. type: str token: description: - The token created within Nautobot to authorize API access required: true type: str api_version: description: - API Version Nautobot REST API required: false type: str version_added: 4.1.0 version_added_collection: networktocode.nautobot description: description: - The description of the platform required: false type: str version_added: 3.0.0 version_added_collection: networktocode.nautobot napalm_args: description: - The optional arguments used for NAPALM connections required: false type: dict version_added: 3.0.0 version_added_collection: networktocode.nautobot manufacturer: description: - The manufacturer the platform will be tied to required: false type: raw version_added: 3.0.0 version_added_collection: networktocode.nautobot query_params: description: - This can be used to override the specified values in ALLOWED_QUERY_PARAMS that is defined - in plugins/module_utils/utils.py and provides control to users on what may make - an object unique in their environment. elements: str required: false type: list version_added: 3.0.0 version_added_collection: networktocode.nautobot napalm_driver: description: - The name of the NAPALM driver to be used when using the NAPALM plugin required: false type: str version_added: 3.0.0 version_added_collection: networktocode.nautobot validate_certs: default: true description: - If C(no), SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. required: false type: raw
msg: description: Message indicating failure or info about what has been achieved returned: always type: str platform: description: Serialized object as created or already existent within Nautobot returned: success (when I(state=present)) type: dict