diff --git a/linux-config-ntp.yaml b/linux-config-ntp.yaml index 3bc281e..b5a8a9f 100644 --- a/linux-config-ntp.yaml +++ b/linux-config-ntp.yaml @@ -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 diff --git a/roles/config-ntp/tasks/main.yaml b/roles/config-ntp/tasks/main.yaml index cecfd74..605a9d8 100644 --- a/roles/config-ntp/tasks/main.yaml +++ b/roles/config-ntp/tasks/main.yaml @@ -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