summaryrefslogtreecommitdiffstats
path: root/vagrant_support/timezone.yml
blob: f0e1b5f26e1cc0de3f53630e4ee2d3cda1a290cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---

- name: check for non-link localtime
  stat: path=/etc/localtime
  register: localtime

- name: remove localtime
  file:
    path: /etc/localtime
    state: absent
  when: localtime.stat.islnk is defined and localtime.stat.islnk == False

- name: set timezone to same as production
  file:
    path: /etc/localtime
    src: /usr/share/zoneinfo/America/Los_Angeles
    force: true
    state: link