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:
|
2021-01-17 12:12:53 +01:00
|
|
|
- acl # advanced ACL
|
2019-08-29 07:02:15 +02:00
|
|
|
- apt # better than apt-get
|
|
|
|
- aptitude # nice to have for Ansible
|
|
|
|
- bash-completion # because bash
|
2021-01-17 12:13:30 +01:00
|
|
|
- curl # better than wget
|
2019-08-29 07:02:15 +02:00
|
|
|
- git # code versioning
|
2021-01-17 12:12:53 +01:00
|
|
|
- htop # better than top
|
|
|
|
- iotop # monitor i/o
|
2019-08-29 07:02:15 +02:00
|
|
|
- less # i like cats
|
2019-12-05 14:07:48 +01:00
|
|
|
- lsb-release
|
2021-01-17 12:12:53 +01:00
|
|
|
- molly-guard # prevent reboot
|
|
|
|
- nano # for vulcain
|
|
|
|
- ntp # network time sync
|
|
|
|
- screen # Vulcain asked for this
|
|
|
|
- sudo
|
2021-02-02 23:17:47 +01:00
|
|
|
- tmux # For shirenn
|
2021-01-17 12:12:53 +01:00
|
|
|
- tree # create a graphical tree of files
|
|
|
|
- vim # better than nano
|
|
|
|
- zsh # to be able to ssh @erdnaxe
|
2021-03-07 21:41:42 +01:00
|
|
|
- dnsutils # dig
|
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
|
|
|
|
2021-03-06 04:31:20 +01:00
|
|
|
- include_role:
|
|
|
|
name: update_motd
|
2019-05-03 15:52:50 +02:00
|
|
|
|
2019-02-05 08:35:45 +01:00
|
|
|
# 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
|
|
|
# APT-List Changes : send email with changelog
|
|
|
|
- include_tasks: apt-listchanges.yml
|
|
|
|
|
2021-01-28 03:42:07 +01:00
|
|
|
# APT Unattended upgrades
|
|
|
|
- include_tasks: apt-unattended.yml
|
|
|
|
|
2019-02-05 08:35:45 +01:00
|
|
|
# User skeleton
|
|
|
|
- name: Configure user skeleton
|
|
|
|
copy:
|
2019-03-26 09:17:46 +01:00
|
|
|
src: "skel/dot_{{ item }}"
|
|
|
|
dest: "/etc/skel/.{{ item }}"
|
2020-11-04 19:31:50 +01:00
|
|
|
mode: 0644
|
2019-03-23 19:49:13 +01:00
|
|
|
loop:
|
|
|
|
- zshrc
|
|
|
|
- zshrc.local
|
2020-05-07 12:53:59 +02:00
|
|
|
|
|
|
|
- name: Configure resolvconf
|
|
|
|
template:
|
|
|
|
src: resolv.conf
|
|
|
|
dest: /etc/resolv.conf
|
|
|
|
mode: 0644
|
2021-01-08 22:43:18 +01:00
|
|
|
|
|
|
|
- name: Remove smartmontols
|
|
|
|
apt:
|
|
|
|
pkg: smartmontools
|
|
|
|
state: absent
|
2021-01-17 17:06:59 +01:00
|
|
|
autoremove: true
|
2021-01-08 22:43:18 +01:00
|
|
|
when: ansible_system_vendor == "QEMU"
|
|
|
|
|
|
|
|
- name: Remove useless packages from the cache
|
|
|
|
apt:
|
2021-01-17 17:06:59 +01:00
|
|
|
autoclean: true
|
2021-01-08 22:43:18 +01:00
|
|
|
|
|
|
|
- name: Remove dependencies that are no longer required
|
|
|
|
apt:
|
2021-01-17 17:06:59 +01:00
|
|
|
autoremove: true
|