add conditional

This commit is contained in:
Ruben Blanco 2024-02-15 15:46:09 +01:00
parent 69c0182051
commit 89f1d9cdb5
1 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,11 @@
tasks:
- name: "[CONFIG TZDATA] Comprobando si es necesario configurar timezone"
debug:
msg: "No es necesario configurar timezone en la máquina"
when: tzdata_enabled is not defined or not tzdata_enabled
- name: "[CONFIG TZDATA] Set timezone"
import_role:
name: config-tzdata