vn-ansible/linux-config-tzdata.yaml

18 lines
465 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
when: tzdata_enabled is defined and tzdata_enabled