add conditional

This commit is contained in:
Ruben Blanco 2024-02-15 12:24:20 +01:00
parent 4b2e9feedd
commit 823871057f
1 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,11 @@
tasks:
- name: "[CONFIG SUDOERS] Comprobando si es necesario configurar sudoers"
debug:
msg: "No es necesario configurar sudoers en la máquina"
when: sudoers_enabled is not defined or not sudoers_enabled
- name: "[CONFIG SUDOERS] Config sudoers"
import_role:
name: config-sudoers