b3b698c6ff
Contains a handler to restart crond when tz is changed. Cron service name differs across distros. Removes the puppet-timezone usage. Change-Id: I4e45d0e0ed37214ac491f373ff2d37750e720718
15 lines
350 B
YAML
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
|