fragmentedpacket / fragmentedpacket.netbox_modules / 0.1.4 / module / netbox_cluster_type Create, update or delete cluster types within Netbox | "added in version" 0.1.0 of fragmentedpacket.netbox_modules" Authors: Mikhail Yohman (@FragmentedPacket) preview | supported by communityfragmentedpacket.netbox_modules.netbox_cluster_type (0.1.4) — module
Install with ansible-galaxy collection install fragmentedpacket.netbox_modules:==0.1.4
collections: - name: fragmentedpacket.netbox_modules version: 0.1.4
Creates, updates or removes cluster types from Netbox
- name: "Test Netbox modules" connection: local hosts: localhost gather_facts: False tasks: - name: Create cluster type within Netbox with only required information netbox_cluster_type: netbox_url: http://netbox.local netbox_token: thisIsMyToken data: name: Test Cluster Type state: present - name: Delete cluster within netbox netbox_cluster_type: netbox_url: http://netbox.local netbox_token: thisIsMyToken data: name: Test Cluster Type state: absent
data: description: - Defines the cluster type configuration suboptions: name: description: - The name of the cluster type required: true state: choices: - absent - present default: present description: - Use C(present) or C(absent) for adding or removing. netbox_url: description: - URL of the Netbox instance resolvable by Ansible control host required: true netbox_token: description: - The token created within Netbox to authorize API access required: true validate_certs: default: 'yes' description: - If C(no), SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. type: bool
cluster_type: description: Serialized object as created or already existent within Netbox returned: success (when I(state=present)) type: dict msg: description: Message indicating failure or info about what has been achieved returned: always type: str