vn-ansible/roles/config-tzdata/tasks/main.yaml

21 lines
502 B
YAML

---
- name: "[CONFIG TZDATA] Comprobando si es necesario configurar timezone"
meta: end_host
when: tzdata_enabled is not defined or not tzdata_enabled
#- name: copy script set_timezone.sh to tmp
# copy:
# src: set_timezone.sh
# dest: /tmp/set_timezone.sh
# owner: root
# group: root
# mode: '0744'
- name: execute script set_timezone.sh
script: set_timezone.sh
#- name: delete script set_timezone.sh on tmp directory
# file:
# path: /tmp/set_timezone.sh
# state: absent