ansible/roles/common-tools/tasks/main.yml

63 lines
1.7 KiB
YAML

---
- name: Install common tools
apt:
update_cache: true
install_recommends: false
name:
- apt-file
- sudo
- molly-guard # prevent reboot
- debsums
- ntp # network time sync
- apt # better than apt-get
- nano # for vulcain
- vim # better than nano
- emacs-nox # for maman
- htop # better than top
- zsh # to be able to ssh @erdnaxe
- fish # to motivate @edpibu
- aptitude # nice to have for Ansible
- acl # advanced ACL
- iotop # monitor i/o
- tree # create a graphical tree of files
- bash-completion # because bash
- git # code versioning
- less # i like cats
- screen # Vulcain asked for this
- vlock # virtual console lock
- resolvconf # for dns configuration in network interfaces
- lsscsi # to list SCSI devices
- tmux # better than screen
- needrestart # ask to restart services after upgrade
- lsb-release # needed to autodetect Debian version
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Clean up unused packages
apt:
state: absent
name:
- doc-debian # graphical
- debian-faq # graphical
- os-prober # makes grub-install lag
- oidentd # kill the monster, https://youtu.be/yhNB0vO7FxI
- python3-reportbug
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Set permissions on screen
file:
path: /usr/bin/screen
owner: root
group: utmp
mode: '4755'
check_mode: no
- name: Deploy screen tmpfile
template:
src: tmpfiles.d/screen.conf.j2
dest: /etc/tmpfiles.d/screen.conf
mode: 0644