fix: run if only one command in sudoer commands

This commit is contained in:
theadam 2024-12-14 15:14:43 +01:00
parent 483e7e7f05
commit 9c6fba7938

View file

@ -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