add conditional

This commit is contained in:
Ruben Blanco 2024-02-15 12:09:15 +01:00
parent 0a85745951
commit 6531915876
1 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,11 @@
tasks:
- name: "[CONFIG RELAYHOST SMTP] Comprobando si es necesario configurar relayhost smtp"
debug:
msg: "No es necesario configurar relayhost smtp en la máquina"
when: relay-host_enabled is not defined or not relay-host_enabled
- name: "[CONFIG RELAYHOST SMTP] Config relayhost smtp"
import_role:
name: config-relayhost-smtp