Skip to content

Remove unsupported use param from nginx service task#1674

Merged
swalkinshaw merged 1 commit into
masterfrom
fix/nginx-service-use-param
Jun 18, 2026
Merged

Remove unsupported use param from nginx service task#1674
swalkinshaw merged 1 commit into
masterfrom
fix/nginx-service-use-param

Conversation

@swalkinshaw

Copy link
Copy Markdown
Member

The use directive was consumed by the service action plugin to force the generic SysV service backend instead of auto-detecting systemd. Newer ansible-core (2.20+) no longer handles it in the action plugin, so it gets passed through to the underlying module and fails:

Unsupported parameters for (ansible.legacy.service) module: use

Dropping it lets the service module auto-detect the init system, which is systemd on Trellis's supported Ubuntu targets.

Fixes #1668

The `use` directive was consumed by the `service` action plugin to
force the generic SysV `service` backend instead of auto-detecting
systemd. Newer ansible-core (2.20+) no longer handles it in the action
plugin, so it gets passed through to the underlying module and fails:

    Unsupported parameters for (ansible.legacy.service) module: use

Dropping it lets the service module auto-detect the init system, which
is systemd on Trellis's supported Ubuntu targets.

Fixes #1668

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@swalkinshaw swalkinshaw merged commit 0fed5dd into master Jun 18, 2026
2 checks passed
@swalkinshaw swalkinshaw deleted the fix/nginx-service-use-param branch June 18, 2026 18:29
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.

Module failed: Unsupported parameters for (ansible.legacy.service) module: use

1 participant