Major changes to Debian env bootstrap playbook.

- Set and generate default locale
- Set default timezone
- Restart appropriate daemons
This commit is contained in:
staticsafe 2014-05-06 15:53:24 +00:00
parent e162d55ac0
commit e6dd644a0d
1 changed files with 17 additions and 2 deletions

View File

@ -2,9 +2,24 @@
- user: root
hosts: unsetup
tasks:
- name: Install python-apt and aptitude
shell: apt-get update && apt-get -y install python-apt aptitude
- name: Install python-apt, aptitude, and debconf-utils
shell: apt-get update && apt-get -y install python-apt aptitude debconf-utils
- name: Do any package upgrades
apt: upgrade=dist
- name: Set default locale to en_US.UTF-8
debconf: name=locales question='locales/default_environment_locale' value=en_US.UTF-8 vtype='select'
- name: Generate locales
debconf: name=locales question='locales/locales_to_be_generated' value='en_US.UTF-8 UTF-8' vtype='multiselect'
- name: Choose timezone area
debconf: name=tzdata question='tzdata/Areas' value='Etc' vtype='select'
debconf: name=tzdata question='tzdata/Zones/Etc' value='UTC' vtype='select'
notify:
- restart rsyslog
- restart cron
- name: Install required things
apt: pkg=most,zsh,vim,vim-scripts,git,subversion,tmux,multitail,mtr-tiny,curl,dnsutils,sudo,gnupg,traceroute,htop state=present
handlers:
- name: restart rsyslog
service: name=rsyslog state=restarted
- name: restart cron
service: name=cron state=restarted