From 9662bb0ff89dd3f758e33afa5f1778c3ae16dc09 Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 30 Dec 2021 10:12:44 -0600 Subject: [PATCH] Ensure we actually add our new user to sudoers --- playbooks/all_scanner.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/all_scanner.yml b/playbooks/all_scanner.yml index 469a1dc..1c90afe 100755 --- a/playbooks/all_scanner.yml +++ b/playbooks/all_scanner.yml @@ -7,7 +7,7 @@ user: name=scanner password="!" state=present tags: [ scanner, greenbone ] - name: assure scanner user sudoers rule - lineinfile: path=/etc/sudoers line= + lineinfile: path=/etc/sudoers line="scanner ALL=(ALL:ALL) NOPASSWD:ALL" tags: [ scanner, greenbone ] - name: assure scanner user authorized keys authorized_key: