From 31868f3b167147fd3e0ee9ade7808b9b06a556c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 17 Apr 2022 14:47:29 +0200 Subject: [PATCH] ansible user can become any user --- roles/common/tasks/user-ops.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/tasks/user-ops.yaml b/roles/common/tasks/user-ops.yaml index 2f3abcd..dd487bc 100644 --- a/roles/common/tasks/user-ops.yaml +++ b/roles/common/tasks/user-ops.yaml @@ -46,7 +46,7 @@ lineinfile: state: present path: /etc/sudoers - line: "ansible ALL=(ALL:ALL) NOPASSWD" + line: "ansible ALL=(ALL:ALL) NOPASSWD:ALL" when: checkallowusers.found == 0 - name: "Update authorized_keys of tormakris"