Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add reset-failed state in executable_options #4301

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

tanwigeetika1618
Copy link
Contributor

Issue:

Description:

This PR introduces a fix that allows the reset-failed state to be correctly handled when using the ansible.builtin.command module. Previously, the rule validation incorrectly flagged tasks using systemctl reset-failed through the ansible.builtin.command module, suggesting the use of the systemd module instead, which does not natively support the reset-failed state.

Changes:

  • Added support for the reset-failed state in the executable options for the ansible.builtin.command module.

@tanwigeetika1618 tanwigeetika1618 self-assigned this Aug 27, 2024
@github-actions github-actions bot added the bug label Aug 27, 2024
@Qalthos Qalthos marked this pull request as ready for review August 28, 2024 13:13
@Qalthos Qalthos requested a review from a team as a code owner August 28, 2024 13:13
@Qalthos Qalthos requested review from audgirka and alisonlhart and removed request for a team August 28, 2024 13:13
Copy link
Contributor

@Qalthos Qalthos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can add a case to examples/playbooks/rule-command-instead-of-module-pass.yml defending this change, this should be good to merge.

@alisonlhart
Copy link
Contributor

+1 on Kate's comment, looks good besides needing the test case!

Copy link

sonarcloud bot commented Sep 2, 2024

@audgirka audgirka merged commit 7a78006 into ansible:main Sep 3, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Incorrect warning for "systemctl reset-failed firewalld"
4 participants