/Stouts.timezone

Ansible role which manage timezone

Primary LanguageMakefileMIT LicenseMIT

Stouts.timezone

Build Status Galaxy Tag

Ansible role which manage timezone (debian)

Variables

timezone_enabled: yes                   # The role is enabled
timezone_timezone: UTC                  # Set timezone

Usage

Add Stouts.timezone to your roles and set vars in your playbook file.

Example:

- hosts: all

  roles:
    - Stouts.timezone

  vars:
    timezone_timezone: Europe/Moscow

If you have services that must be restarted in order to pick up the new timezone, add them to the timezone_dependent_services list. They will be restarted with the service module.

Example:

- hosts: all

  roles:
    - Stouts.timezone

  vars:
    timezone_timezone: Europe/Moscow
    timezone_dependent_services: [rsyslog, apache2, sendmail]

License

Licensed under the MIT License. See the LICENSE file for details.

Feedback, bug-reports, requests, ...

Are welcome!