2019-02-05 08:35:45 +01:00
|
|
|
---
|
|
|
|
# Should contain only small tools that everyone can't live without
|
|
|
|
- name: Install basic tools
|
|
|
|
when: ansible_os_family == "Debian"
|
|
|
|
apt:
|
2019-03-11 18:02:29 +01:00
|
|
|
name:
|
2019-03-02 12:16:43 +01:00
|
|
|
- bash-completion # for bash users
|
|
|
|
- zsh # alternative shell
|
|
|
|
- sudo # to gain root access
|
|
|
|
- git # code versioning
|
|
|
|
- nano # basic text editor
|
|
|
|
- vim # like nano but more powerful and complex
|
|
|
|
- htop # better than top
|
|
|
|
- less # i like cats
|
|
|
|
- tree # create a graphical tree of files
|
|
|
|
- acl # for Ansible become support
|
2019-03-11 14:55:21 +01:00
|
|
|
- screen # Vulcain asked for this
|
2019-03-11 18:02:29 +01:00
|
|
|
update_cache: true
|
2019-03-03 19:28:57 +01:00
|
|
|
register: apt_result
|
|
|
|
retries: 3
|
|
|
|
until: apt_result is succeeded
|
2019-02-05 08:35:45 +01:00
|
|
|
|
|
|
|
# Pimp my server
|
|
|
|
- name: Customize motd
|
|
|
|
copy:
|
2019-03-23 19:13:02 +01:00
|
|
|
src: update-motd.d/00-logo
|
|
|
|
dest: /etc/update-motd.d/00-logo
|
2019-02-05 08:35:45 +01:00
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
# Configure APT mirrors on Debian Stretch
|
|
|
|
- name: Configure APT mirrors
|
2019-03-02 13:31:51 +01:00
|
|
|
when:
|
|
|
|
- ansible_distribution == 'Debian'
|
|
|
|
- ansible_distribution_release == 'stretch'
|
2019-02-05 08:35:45 +01:00
|
|
|
template:
|
2019-03-23 19:13:02 +01:00
|
|
|
src: apt/sources.list.j2
|
|
|
|
dest: /etc/apt/sources.list
|
2019-02-05 08:35:45 +01:00
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
# Patriotisme
|
|
|
|
- name: Ensure French UTF-8 locale exists
|
|
|
|
locale_gen:
|
|
|
|
name: fr_FR.UTF-8
|
|
|
|
state: present
|
|
|
|
|
2019-03-03 09:43:14 +01:00
|
|
|
# Fix LC_CTYPE="C"
|
|
|
|
- name: Select default locale
|
|
|
|
debconf:
|
|
|
|
name: locales
|
|
|
|
question: locales/default_environment_locale
|
|
|
|
value: fr_FR.UTF-8
|
|
|
|
vtype: select
|
2019-03-23 19:13:41 +01:00
|
|
|
notify: Reconfigure locales
|
2019-03-03 09:43:14 +01:00
|
|
|
|
2019-02-05 08:35:45 +01:00
|
|
|
# Molly-Guard : prevent accidental shutdowns
|
|
|
|
- include_tasks: molly-guard.yml
|
|
|
|
|
|
|
|
# APT-List Changes : send email with changelog
|
|
|
|
- include_tasks: apt-listchanges.yml
|
|
|
|
|
|
|
|
# User skeleton
|
|
|
|
- name: Configure user skeleton
|
|
|
|
copy:
|
2019-03-26 09:17:46 +01:00
|
|
|
src: "skel/dot_{{ item }}"
|
|
|
|
dest: "/etc/skel/.{{ item }}"
|
2019-03-23 19:49:13 +01:00
|
|
|
loop:
|
|
|
|
- zshrc
|
|
|
|
- zshrc.local
|