add conditional

This commit is contained in:
Ruben Blanco 2024-02-15 17:30:52 +01:00
parent 3815c3d32a
commit 0c3e23f781
2 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,11 @@
tasks:
- name: "[CONFIG NTP] Comprobando si es necesario configurar ntp"
debug:
msg: "No es necesario configurar ntp en la máquina"
when: ntp_enabled is not defined or not ntp_enabled
- name: "[CONFIG NTP] Install and configure ntp"
import_role:
name: config-ntp

View File

@ -2,6 +2,10 @@
# Install and configure NTP
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- name: "[CONFIG NTP] Comprobando si es necesario configurar ntp"
meta: end_host
when: ntp_enabled is not defined or not ntp_enabled
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# SE OMITE , SE REALIZA CON systemd-timesyncd.service
# paso1