From 9da1f834d43fa3346b793c84aa57752ca0f5c031 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 28 Dec 2020 21:01:48 -0600 Subject: [PATCH] Do not use cmd parameter even though it is in the documentation. Received error 'Unsupported parameters for (command) module: cmd' --- tasks/hardness_check_lynis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/hardness_check_lynis.yml b/tasks/hardness_check_lynis.yml index 2e8e3ae..d078edf 100644 --- a/tasks/hardness_check_lynis.yml +++ b/tasks/hardness_check_lynis.yml @@ -6,6 +6,5 @@ force: yes - name: Run Lynis - ansible.builtin.shell: + ansible.builtin.shell: lynis audit system chdir: /usr/local/lynis/ - cmd: lynis audit system