From 711bfdee127ede2d891a2658bc04b33e8cbfc7b6 Mon Sep 17 00:00:00 2001 From: Alan Brenner Date: Fri, 15 Dec 2023 20:38:43 -0500 Subject: [PATCH] Ignore set-property, which is needed to configure systemd nspawn containers. --- src/ansiblelint/rules/command_instead_of_module.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ansiblelint/rules/command_instead_of_module.py b/src/ansiblelint/rules/command_instead_of_module.py index a2fe8bc0b9..bf985456a6 100644 --- a/src/ansiblelint/rules/command_instead_of_module.py +++ b/src/ansiblelint/rules/command_instead_of_module.py @@ -69,7 +69,14 @@ class CommandsInsteadOfModulesRule(AnsibleLintRule): _executable_options = { "git": ["branch", "log", "lfs", "rev-parse"], - "systemctl": ["--version", "kill", "set-default", "show-environment", "status"], + "systemctl": [ + "--version", + "kill", + "set-default", + "set-property", + "show-environment", + "status", + ], "yum": ["clean"], "rpm": ["--nodeps"], }