Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/petemcw/ansible-role-timezone
Timezone Role for Ansible
https://github.com/petemcw/ansible-role-timezone
ansible ansible-role timezone
Last synced: about 2 months ago
JSON representation
Timezone Role for Ansible
- Host: GitHub
- URL: https://github.com/petemcw/ansible-role-timezone
- Owner: petemcw
- License: mit
- Created: 2017-01-23T20:30:40.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-23T22:48:16.000Z (about 8 years ago)
- Last Synced: 2024-11-08T01:12:09.933Z (3 months ago)
- Topics: ansible, ansible-role, timezone
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Timezone Role for Ansible
[![Build Status](https://travis-ci.org/petemcw/ansible-role-timezone.svg?branch=master)](https://travis-ci.org/petemcw/ansible-role-timezone)
This role manages the timezone.
## Role Variables
The variables that can be passed to this role and a brief description about
them are as follows:```yaml
# Enable/Disable timezone tasks
timezone_enabled: true# Default timezone
timezone: Etc/UTC# Timezone dependent services list
timezone_dependent_services: []
```## Examples
1. Configure the timezone with the defaults:
```yaml
---
# This playbook configures timezone- name: Configure timezone on all nodes
hosts: all
roles:
- timezone
```2. Configure a non-default timezone and services that need to pick up new timezone:
```yaml
---
# This playbook configures timezone- name: Configure timezone on all nodes
hosts: all
roles:
- timezone
vars:
timezone: America/Chicago
timezone_dependent_services: [rsyslog, sendmail]
```## Dependencies
None.
## License
MIT