add ability to set timezone

This commit is contained in:
Simon Bruder 2018-04-06 11:50:16 +00:00
parent ce82a62dae
commit a17588d3cd
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
4 changed files with 13 additions and 1 deletions

View file

@ -50,6 +50,7 @@
tasksel:
- english
- german
timezone: Europe/Berlin
fablab:
arduino:
version: 1.8.5

View file

@ -1,4 +1,3 @@
---
- name: generate locales
command: locale-gen

View file

@ -1,3 +1,4 @@
---
- import_tasks: keyboard-configuration.yml
- import_tasks: locale.yml
- import_tasks: timezone.yml

View file

@ -0,0 +1,11 @@
---
- name: set timezone
copy:
dest: /etc/timezone
content: "{{ l10n.timezone }}"
- name: copy timezone config
copy:
remote_src: true
src: "/usr/share/zoneinfo/{{ l10n.timezone }}"
dest: /etc/localtime