From 8bbd6c2210a2adfbb16eb4ed14f0f0c9562ab65e Mon Sep 17 00:00:00 2001 From: Ahmed AbdelHalim Date: Thu, 11 Dec 2025 17:27:15 +0100 Subject: Fix the test_group passwordless permission for testing --- molecule/archlinux/converge.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'molecule/archlinux/converge.yml') diff --git a/molecule/archlinux/converge.yml b/molecule/archlinux/converge.yml index 408bdd6d..1a29f5a7 100644 --- a/molecule/archlinux/converge.yml +++ b/molecule/archlinux/converge.yml @@ -16,6 +16,13 @@ - role: "user" - role: "ssh" - role: "password_policy" + tasks: + - name: "Configure passwordless sudo for testing" + ansible.builtin.copy: + content: "%test_group ALL=(ALL) NOPASSWD: ALL\n" + dest: "/etc/sudoers.d/test_group" + mode: "0440" + validate: 'visudo -cf %s' - name: "Configure" hosts: "archlinux" @@ -24,7 +31,7 @@ environment: PATH: "{{ ansible_env.HOME }}/.local/bin:{{ ansible_env.PATH }}" vars: - ansible_become_method: su + ansible_become_method: sudo locales: - "en_US.UTF-8 UTF-8" timezone: "GMT" -- cgit v1.2.3