ansible / ansible.builtin / v2.9.27 / module / profitbricks_nic Create or Remove a NIC. | "added in version" 2.0 of ansible.builtin" Authors: Matt Baldwin (@baldwinSPC) <baldwin@stackpointcloud.com> preview | supported by communityansible.builtin.profitbricks_nic (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
This module allows you to create or restore a volume snapshot. This module has a dependency on profitbricks >= 1.0.0
# Create a NIC - profitbricks_nic: datacenter: Tardis One server: node002 lan: 2 wait_timeout: 500 state: present
# Remove a NIC - profitbricks_nic: datacenter: Tardis One server: node002 name: 7341c2454f wait_timeout: 500 state: absent
lan: description: - The LAN to place the NIC on. You can pass a LAN that doesn't exist and it will be created. Required on create. required: true name: description: - The name or ID of the NIC. This is only required on deletes, but not on create. required: true wait: default: 'yes' description: - wait for the operation to complete before returning required: false type: bool state: choices: - present - absent default: present description: - Indicate desired state of the resource required: false server: description: - The server name or ID. required: true datacenter: description: - The datacenter in which to operate. required: true wait_timeout: default: 600 description: - how long before wait gives up, in seconds subscription_user: description: - The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environment variable. required: false subscription_password: description: - THe ProfitBricks password. Overrides the PB_PASSWORD environment variable. required: false