Manages a single assignment between a Linode and a Placement Group.
| 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 a Linode to a placement group
linode.cloud.placement_group_assign:
placement_group_id: 123
linode_id: 111
state: present- name: Unassign a Linode from a placement group
linode.cloud.placement_group_assign:
placement_group_id: 123
linode_id: 111
state: absent
| Field | Type | Required | Description |
|---|---|---|---|
placement_group_id |
int |
Required | The ID of the Placement Group for this assignment. |
linode_id |
int |
Required | The Linode ID to assign or unassign to the Placement Group. |
state |
str |
Required | The desired state of the target. (Choices: present, absent) |