vn-ansible/linux-config-tzdata.yaml

17 lines
408 B
YAML

---
- hosts: '{{ ip_addr }}'
become: yes
become_method: sudo
gather_facts: yes
tasks:
- name: "[CONFIG TZDATA] Comprobando si es necesario configurar timezone"
debug:
msg: "No es necesario configurar timezone en la máquina"
when: tzdata_enabled is not defined or not tzdata_enabled
- name: "[CONFIG TZDATA] Set timezone"
import_role:
name: config-tzdata