vn-ansible/linux-config-ntp.yaml

18 lines
397 B
YAML

---
- hosts: '{{ ip_addr }}'
become: yes
become_method: sudo
gather_facts: yes
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