53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
---
|
|
- 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
|