vn-ansible/linux-config-ntp.yaml

18 lines
397 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