2020-12-21 23:16:11 +00:00
|
|
|
---
|
|
|
|
- name: Install basic tools
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- apt # better than apt-get
|
|
|
|
- aptitude # nice to have for Ansible
|
|
|
|
- bash-completion # because bash
|
2020-12-21 23:48:37 +00:00
|
|
|
- curl # better than wget
|
2020-12-21 23:16:11 +00:00
|
|
|
- git # code versioning
|
|
|
|
- htop # better than top
|
|
|
|
- less # i like cats
|
2020-12-21 23:48:37 +00:00
|
|
|
- sudo # i am god
|
|
|
|
- tmux # better than screen
|
2020-12-21 23:16:11 +00:00
|
|
|
- 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
|