Manages the domains for a given dokku application or globally
Supported.
Supported.
Keyed by app and global. Fields left empty are omitted from the address. Manages the whole domains collection; entries are identified by value.
| Parameter | Type | Required | Default | Choices | Description |
|---|---|---|---|---|---|
app |
string | no | Name of the app | ||
global |
bool | no | Flag indicating if the domains should be applied globally | ||
domains |
list | no | List of domain names; omit for state 'clear' | ||
state |
string | no | present | present, absent, set, clear | Desired state of the domains |
dokku_domains:
app: example-app
domains:
- example.com
- www.example.com
state: ""dokku_domains:
app: example-app
domains:
- old.example.com
state: absentdokku_domains:
app: ""
global: true
domains:
- global.example.com
state: setdokku_domains:
app: example-app
state: clearAvailable after the task runs when captured with register:, referenced as result.<Key> (or registered.<name>.<Key>).
| Key | Returned | Type | Description |
|---|---|---|---|
Changed |
always | bool | Whether the task changed server state. |
State |
always | string | Resulting state of the resource. |
DesiredState |
always | string | The state the task targeted. |
Message |
always | string | Human-readable result message (may be empty). |
Commands |
when a subprocess ran | list | Resolved dokku command lines executed. |
Stdout |
when a subprocess ran | string | Captured stdout of the final command. |
Stderr |
when a subprocess ran | string | Captured stderr of the final command. |
ExitCode |
when a subprocess ran | int | Exit code of the final command. |