Skip to content

feat: implement dokku_domains task#123

Merged
josegonzalez merged 2 commits intomasterfrom
8-implement-domains-task
Apr 25, 2026
Merged

feat: implement dokku_domains task#123
josegonzalez merged 2 commits intomasterfrom
8-implement-domains-task

Conversation

@josegonzalez
Copy link
Copy Markdown
Member

Summary

  • Implements dokku_domains task with four states: present (idempotent add), absent (idempotent remove), set (replace all), and clear (remove all)
  • Supports both per-app and global domain operations, compatible with the upstream ansible-dokku dokku_domains module
  • Adds StateSet and StateClear constants to the state system

Closes #8

Adds a new DomainsTask supporting four states compatible with the
upstream ansible-dokku dokku_domains module:

- present: idempotently add domains (only adds missing ones)
- absent: idempotently remove domains (only removes existing ones)
- set: replace all domains unconditionally
- clear: remove all domains unconditionally

Supports both per-app and global domain operations via the global flag.
Includes unit tests, YAML parsing tests, integration tests, and
documentation.
Adds a getReportedDomains helper that queries dokku domains:report to
verify the actual domain state after each operation: add, remove, set,
and clear.
@josegonzalez josegonzalez merged commit 5da6304 into master Apr 25, 2026
10 checks passed
@josegonzalez josegonzalez deleted the 8-implement-domains-task branch April 25, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement domains_task

1 participant