system-config/playbooks/roles/timezone/tasks/main.yaml
David Shrewsbury b3b698c6ff Add timezone role
Contains a handler to restart crond when tz is changed. Cron service
name differs across distros.

Removes the puppet-timezone usage.

Change-Id: I4e45d0e0ed37214ac491f373ff2d37750e720718
2018-08-27 07:34:28 -07:00

15 lines
350 B
YAML

- name: Include OS-specific variables
include_vars: "{{ lookup('first_found', params) }}"
vars:
params:
files: "{{ distro_lookup_path }}"
paths:
- 'vars'
- name: Set timezone to Etc/UTC
timezone:
name: Etc/UTC
# The timezone Ansible module recommends restarting cron after tz change.
notify:
- restart cron