Basic configuration with docker
Signed-off-by: Yohann D'ANELLO <yohann.danello@gmail.com>
This commit is contained in:
52
roles/baseconfig/tasks/main.yml
Normal file
52
roles/baseconfig/tasks/main.yml
Normal file
@ -0,0 +1,52 @@
|
||||
---
|
||||
- name: Install basic tools
|
||||
apt:
|
||||
name:
|
||||
- apt # better than apt-get
|
||||
- aptitude # nice to have for Ansible
|
||||
- bash-completion # because bash
|
||||
- curl # better than wget
|
||||
- git # code versioning
|
||||
- htop # better than top
|
||||
- less # i like cats
|
||||
- sudo # i am god
|
||||
- tmux # better than screen
|
||||
- tree # create a graphical tree of files
|
||||
- vim # better than nano
|
||||
- molly-guard # prevent reboot
|
||||
- ntp # network time sync
|
||||
- emacs-nox # for maman
|
||||
update_cache: true
|
||||
register: apt_result
|
||||
retries: 3
|
||||
until: apt_result is succeeded
|
||||
|
||||
# Pimp my server
|
||||
- name: Customize motd
|
||||
copy:
|
||||
src: "update-motd.d/{{ item }}"
|
||||
dest: "/etc/update-motd.d/{{ item }}"
|
||||
mode: 0755
|
||||
loop:
|
||||
- 00-logo
|
||||
- 10-uname
|
||||
|
||||
- name: Remove Debian warranty motd
|
||||
file:
|
||||
path: /etc/motd
|
||||
state: absent
|
||||
|
||||
# Patriotisme
|
||||
- name: Ensure French UTF-8 locale exists
|
||||
locale_gen:
|
||||
name: fr_FR.UTF-8
|
||||
state: present
|
||||
|
||||
# Fix LC_CTYPE="C"
|
||||
- name: Select default locale
|
||||
debconf:
|
||||
name: locales
|
||||
question: locales/default_environment_locale
|
||||
value: fr_FR.UTF-8
|
||||
vtype: select
|
||||
notify: Reconfigure locales
|
Reference in New Issue
Block a user