Assign IPs to Linodes in a given Region.
The following restrictions apply:
-
All Linodes involved must have at least one public IPv4 address after assignment.
-
Linodes may have no more than one assigned private IPv4 address.
-
Linodes may have no more than one assigned IPv6 range.
| Field | Type | Required | Description |
|---|---|---|---|
api_token |
str |
Required | The Linode account personal access token. It is necessary to run the module. It can be exposed by the environment variable LINODE_API_TOKEN instead. See details in Usage. |
- name: Assign IP to Linode
linode.cloud.ip_assign:
region: us-east
assignments:
- address: 0.0.0.0
linode_id: 123| Field | Type | Required | Description |
|---|---|---|---|
assignments (sub-options) |
list |
Required | List of assignments to make. (Updatable) |
region |
str |
Required | The Region to operate in. |
| Field | Type | Required | Description |
|---|---|---|---|
address |
str |
Required | The IPv4 address or IPv6 range. |
linode_id |
int |
Required | ID of the Linode. |