Skip to content

Commit

Permalink
fix: Add reset-failed state in executable_options (#4301)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanwigeetika1618 committed Sep 3, 2024
1 parent 33d3515 commit 7a78006
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/playbooks/rule-command-instead-of-module-pass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
ansible.builtin.command: systemctl kill --signal=SIGUSR1 sshd
changed_when: false

- name: Reset a service with systemctl reset-failed
ansible.builtin.command: systemctl reset-failed sshd
changed_when: false

- name: Clear yum cache
ansible.builtin.command: yum clean all
changed_when: false
Expand Down
1 change: 1 addition & 0 deletions src/ansiblelint/rules/command_instead_of_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class CommandsInsteadOfModulesRule(AnsibleLintRule):
"set-property",
"show-environment",
"status",
"reset-failed",
],
"yum": ["clean", "history", "info"],
"rpm": ["--nodeps"],
Expand Down

0 comments on commit 7a78006

Please sign in to comment.