ansible WIP

This commit is contained in:
Benoît Burnichon
2015-11-25 18:48:16 +01:00
committed by Thibaud Fabre
parent 23fda9f81e
commit 0057cccdfe
2059 changed files with 630 additions and 122635 deletions

View File

@@ -0,0 +1,32 @@
---
- name: Update apt
sudo: yes
apt: update_cache=yes
when: server.prevent_update is not defined
- name: Install System Packages
sudo: yes
apt: pkg={{ item }} state=latest
with_items:
- curl
- wget
- python-software-properties
- name: Install Extra Packages
sudo: yes
apt: pkg={{ item }} state=latest
with_items: server.packages
when: server.packages is defined
- name: Configure the timezone
sudo: yes
template: src=timezone.j2 dest=/etc/timezone
- name: More Configure the timezone
sudo: yes
file: src=/usr/share/zoneinfo/{{server.timezone}} dest=/etc/localtime state=link force=yes backup=yes
- name: Set default system language pack
shell: locale-gen {{server.locales|join(' ')}}
sudo: yes

View File

@@ -0,0 +1 @@
{{server.timezone}}