From 9c6fba7938e583e2e03bddf7cfb5999802d334d6 Mon Sep 17 00:00:00 2001 From: theadam Date: Sat, 14 Dec 2024 15:14:43 +0100 Subject: [PATCH] fix: run if only one command in sudoer commands --- tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yaml b/tasks/main.yaml index 0093923..035d38d 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -47,7 +47,7 @@ validate: "visudo -cf %s" loop: "{{ acme_sh_user_sudo_commands }}" when: - - acme_sh_user_sudo_commands | length > 1 + - acme_sh_user_sudo_commands | length > 0 - acme_sh_user_sudoers_file_contents | default('') == "" - name: Install acme.sh