Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions examples/playbooks/rule-command-instead-of-module-pass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
ansible.builtin.command: systemctl show-environment
changed_when: false

- name: Set systemd environment
ansible.builtin.command: systemctl set-environment MYSQLD_OPTS="--skip-grant-tables"
changed_when: false

- name: Unset systemd environment
ansible.builtin.command: systemctl unset-environment MYSQLD_OPTS
changed_when: false

- name: Get systemd runlevel
ansible.builtin.command: systemctl get-default
changed_when: false
Expand Down
2 changes: 2 additions & 0 deletions src/ansiblelint/rules/command_instead_of_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ class CommandsInsteadOfModulesRule(AnsibleLintRule):
"kill",
"set-default",
"set-property",
"set-environment",
"unset-environment",
"show-environment",
"status",
"reset-failed",
Expand Down
Loading