2013-08-13 12:13:40 +00:00
|
|
|
---
|
2013-08-13 12:26:59 +00:00
|
|
|
- user: root
|
2013-08-13 12:33:25 +00:00
|
|
|
hosts: unsetup
|
2013-08-13 12:26:59 +00:00
|
|
|
tasks:
|
2014-05-06 15:53:24 +00:00
|
|
|
- name: Install python-apt, aptitude, and debconf-utils
|
|
|
|
shell: apt-get update && apt-get -y install python-apt aptitude debconf-utils
|
2013-08-13 12:36:21 +00:00
|
|
|
- name: Do any package upgrades
|
|
|
|
apt: upgrade=dist
|
2014-05-06 15:53:24 +00:00
|
|
|
- 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
|
2014-05-06 16:21:48 +00:00
|
|
|
- name: Install required packages
|
2014-05-06 17:12:57 +00:00
|
|
|
apt: pkg=most,zsh,vim,vim-scripts,git,subversion,tmux,multitail,mtr-tiny,curl,dnsutils,sudo,gnupg,traceroute,htop,haveged,python-pip state=present
|
2014-05-06 16:21:48 +00:00
|
|
|
- name: Remove exim4
|
|
|
|
apt: pkg=exim4-daemon-light state=absent
|
2014-05-06 15:53:24 +00:00
|
|
|
handlers:
|
|
|
|
- name: restart rsyslog
|
|
|
|
service: name=rsyslog state=restarted
|
|
|
|
- name: restart cron
|
|
|
|
service: name=cron state=restarted
|