|
|
|
@ -37,17 +37,11 @@ DOCUMENTATION = '''
|
|
|
|
|
module: timezone
|
|
|
|
|
short_description: Configure timezone setting
|
|
|
|
|
description:
|
|
|
|
|
- This module configures the timezone setting, both of the system clock
|
|
|
|
|
and of the hardware clock. I(Currently only Linux, FreeBSD, NetBSD,
|
|
|
|
|
OpenBSD and SmartOS instances are supported.)
|
|
|
|
|
It is recommended to restart C(crond) after changing the timezone,
|
|
|
|
|
otherwise the jobs may run at the wrong time.
|
|
|
|
|
On Linux it uses the C(timedatectl) command if available. Otherwise,
|
|
|
|
|
it edits C(/etc/sysconfig/clock) or C(/etc/timezone) for the system clock,
|
|
|
|
|
and uses the C(hwclock) command for the hardware clock.
|
|
|
|
|
On SmartOS the C(sm-set-timezone) utility is used to set the zone timezone,
|
|
|
|
|
and on *BSD, C(/etc/localtime) is modified.
|
|
|
|
|
If you want to set up the NTP, use M(service) module.
|
|
|
|
|
- This module configures the timezone setting, both of the system clock and of the hardware clock. If you want to set up the NTP, use M(service) module. As of version 2.3 support was added for SmartOS and BSDs.
|
|
|
|
|
- It is recommended to restart C(crond) after changing the timezone, otherwise the jobs may run at the wrong time.
|
|
|
|
|
- On Linux it uses the C(timedatectl) command if available. Otherwise, it edits C(/etc/sysconfig/clock) or C(/etc/timezone) for the system clock, and uses the C(hwclock) command for the hardware clock.
|
|
|
|
|
- On SmartOS the C(sm-set-timezone) utility is used to set the zone timezone.
|
|
|
|
|
- "On *BSD, C(/etc/localtime) is modified."
|
|
|
|
|
version_added: "2.2"
|
|
|
|
|
options:
|
|
|
|
|
name:
|
|
|
|
@ -66,6 +60,8 @@ options:
|
|
|
|
|
I(Only used on Linux.)
|
|
|
|
|
required: false
|
|
|
|
|
aliases: ['rtc']
|
|
|
|
|
notes:
|
|
|
|
|
- On SmartOS the C(sm-set-timezone) utility (part of the smtools package) is required to set the zone timezone
|
|
|
|
|
author:
|
|
|
|
|
- "Shinichi TAMURA (@tmshn)"
|
|
|
|
|
- "Jasper Lievisse Adriaanse (@jasperla)"
|
|
|
|
|