47 lines
996 B
YAML
47 lines
996 B
YAML
- name: Keep apt repository list uptodate
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
cache_valid_time: 3600
|
|
# Even if we "changed it", it's merely a cache, so ignore
|
|
changed_when: false
|
|
|
|
- name: Update system packages to lates
|
|
ansible.builtin.apt:
|
|
upgrade: dist
|
|
|
|
- name: Remove unused packages
|
|
ansible.builtin.apt:
|
|
autoremove: true
|
|
|
|
# The following is a list of utilities that I personally use
|
|
# to make my life easier. It is opiniated and not needed...
|
|
- name: Install utilities to make life easier
|
|
ansible.builtin.apt:
|
|
pkg:
|
|
- apt-dater
|
|
- mosh
|
|
- mc
|
|
- vim
|
|
- curl
|
|
- jq
|
|
- host
|
|
- telnet
|
|
- screen
|
|
- tmux
|
|
- tcpdump
|
|
- sqlite3
|
|
- bash-completion
|
|
- mtr-tiny
|
|
- iotop
|
|
- iftop
|
|
- htop
|
|
- ncdu
|
|
|
|
- name: Firewall for mosh
|
|
ansible.builtin.template:
|
|
dest: /etc/firewall.d/mosh
|
|
group: root
|
|
owner: root
|
|
mode: "0755"
|
|
src: mosh.j2
|
|
notify: Restart firewall
|