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:
|
|
|
|
name: "{{ packages }}"
|
|
|
|
state: present
|
|
|
|
update_cache: yes
|
|
|
|
vars:
|
|
|
|
packages:
|
|
|
|
- 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
|
|
|
|
- ipython # better Python shell
|
|
|
|
- acl # for Ansible become support
|
|
|
|
|
|
|
|
# Pimp my server
|
|
|
|
- name: Customize motd
|
|
|
|
copy:
|
|
|
|
src: 'update-motd.d/00-logo'
|
|
|
|
dest: '/etc/update-motd.d/00-logo'
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
# Configure APT mirrors on Debian Stretch
|
|
|
|
- name: Configure APT mirrors
|
|
|
|
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch'
|
|
|
|
template:
|
2019-02-19 10:42:57 +01:00
|
|
|
src: 'apt/sources.list.j2'
|
2019-02-05 08:35:45 +01:00
|
|
|
dest: '/etc/apt/sources.list'
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
# Patriotisme
|
|
|
|
- name: Ensure French UTF-8 locale exists
|
|
|
|
locale_gen:
|
|
|
|
name: fr_FR.UTF-8
|
|
|
|
state: present
|
|
|
|
|
|
|
|
# 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:
|
|
|
|
src: skel/{{ item.key }}
|
|
|
|
dest: /etc/skel/{{ item.value }}
|
|
|
|
with_dict:
|
|
|
|
dot_zshrc: .zshrc
|
|
|
|
dot_zshrc.local: .zshrc.local
|
|
|
|
|