netbox_community / netbox_community.ansible_modules / 0.1.10 / module / netbox_circuit_termination Create, update or delete circuit terminations within Netbox | "added in version" 0.1.0 of netbox_community.ansible_modules" Authors: Mikhail Yohman (@FragmentedPacket) preview | supported by communitynetbox_community.ansible_modules.netbox_circuit_termination (0.1.10) — module
Install with ansible-galaxy collection install netbox_community.ansible_modules:==0.1.10
collections: - name: netbox_community.ansible_modules version: 0.1.10
Creates, updates or removes circuit terminations from Netbox
- name: "Test Netbox modules" connection: local hosts: localhost gather_facts: False tasks: - name: Create circuit termination within Netbox with only required information netbox_circuit_termination: netbox_url: http://netbox.local netbox_token: thisIsMyToken data: circuit: Test Circuit term_side: A site: Test Site port_speed: 10000 state: present - name: Update circuit termination with other fields netbox_circuit_termination: netbox_url: http://netbox.local netbox_token: thisIsMyToken data: circuit: Test Circuit term_side: A upstream_speed: 1000 xconnect_id: 10X100 pp_info: PP10-24 description: "Test description" state: present - name: Delete circuit termination within netbox netbox_circuit_termination: netbox_url: http://netbox.local netbox_token: thisIsMyToken data: circuit: Test Circuit term_side: A state: absent
data: description: - Defines the circuit termination configuration suboptions: circuit: description: - The circuit to assign to circuit termination required: true description: description: - Description of the circuit termination port_speed: description: - The speed of the port (Kbps) required: true pp_info: description: - Patch panel information site: description: - The site the circuit termination will be assigned to required: true term_side: choices: - A - Z description: - The side of the circuit termination required: true upstream_speed: description: - The upstream speed of the circuit termination xconnect_id: description: - The cross connect ID of the circuit termination 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
circuit_termination: 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