community.general.profitbricks_nic (8.5.0) — module

Create or Remove a NIC

Authors: Matt Baldwin (@baldwinSPC) <baldwin@stackpointcloud.com>

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

This module allows you to create or restore a volume snapshot. This module has a dependency on profitbricks >= 1.0.0


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a NIC
  community.general.profitbricks_nic:
    datacenter: Tardis One
    server: node002
    lan: 2
    wait_timeout: 500
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove a NIC
  community.general.profitbricks_nic:
    datacenter: Tardis One
    server: node002
    name: 7341c2454f
    wait_timeout: 500
    state: absent

Inputs

    
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.
    type: str

name:
    description:
    - The name or ID of the NIC. This is only required on deletes, but not on create.
    - If not specified, it defaults to a value based on UUID4.
    type: str

wait:
    default: true
    description:
    - wait for the operation to complete before returning
    required: false
    type: bool

state:
    default: present
    description:
    - Indicate desired state of the resource
    - 'The available choices are: V(present), V(absent).'
    required: false
    type: str

server:
    description:
    - The server name or ID.
    required: true
    type: str

datacenter:
    description:
    - The datacenter in which to operate.
    required: true
    type: str

wait_timeout:
    default: 600
    description:
    - how long before wait gives up, in seconds
    type: int

subscription_user:
    description:
    - The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environment variable.
    required: true
    type: str

subscription_password:
    description:
    - THe ProfitBricks password. Overrides the PB_PASSWORD environment variable.
    required: true
    type: str