vn-ansible/linux-config-ntp.yaml

19 lines
448 B
YAML
Raw Normal View History

2023-10-23 11:46:57 +00:00
---
2023-12-19 14:55:30 +00:00
- hosts: '{{ ip_addr }}'
2023-10-23 11:46:57 +00:00
become: yes
become_method: sudo
gather_facts: yes
tasks:
2024-02-15 16:30:52 +00:00
- 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
2023-10-23 11:46:57 +00:00
- name: "[CONFIG NTP] Install and configure ntp"
import_role:
name: config-ntp
2024-02-15 17:03:48 +00:00
when: ntp_enabled is defined and ntp_enabled