19 lines
448 B
YAML
19 lines
448 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
|
|
when: ntp_enabled is defined and ntp_enabled
|