Skip to content

Commit

Permalink
Merge pull request #2 from lifeofguenter/Fix-1-Privilege-escalation
Browse files Browse the repository at this point in the history
Fixes #1: Privilege escalation
  • Loading branch information
Ryan Yates committed Nov 17, 2015
2 parents ea256f0 + 5a835ee commit 854af62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ galaxy_info:
description: Role for managing timezone.
company:
license: license (Apache 2.0)
min_ansible_version: 1.5
min_ansible_version: 1.9
platforms:
- name: Ubuntu
versions:
Expand All @@ -14,6 +14,7 @@ galaxy_info:
versions:
- squeeze
- wheezy
- jessie
- name: EL
versions:
- 6
Expand All @@ -24,5 +25,4 @@ galaxy_info:
- 20
categories:
- system
dependencies: []

dependencies: []
6 changes: 5 additions & 1 deletion tasks/timezone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,28 @@
apt: name={{timezone_package}}
update_cache=yes
cache_valid_time=86400
state=present
state=present
when: ansible_os_family == 'Debian'
tags: ['timezone']
become: yes

- name: Install tzdata for RedHat based distros
yum: name={{timezone_package}}
state=present
when: ansible_os_family == 'RedHat'
tags: ['timezone']
become: yes

- name: Set timezone config
template: src="timezone-{{ansible_os_family}}.j2"
dest={{timezone_file}}
tags: ['timezone']
become: yes

- name: Set link to localtime
file: state=link
src={{zoneinfo_dir}}{{timezone}}
dest={{localtime_file}}
force=yes
tags: ['timezone']
become: yes

0 comments on commit 854af62

Please sign in to comment.