vm-ansible/roles/common/tasks/apt.yaml

48 lines
851 B
YAML

---
- name: "Use custom Ubuntu mirror"
ansible.builtin.replace:
path: /etc/apt/sources.list
regexp: 'http://hu.archive.ubuntu.com'
replace: 'https://mirror.niif.hu'
backup: yes
- name: "Remove Ubuntu bloatware"
ansible.builtin.apt:
state: absent
name: ubutu-server
autoremove: yes
- name: "Update machine"
ansible.builtin.apt:
update_cache: yes
upgrade: "yes"
autoclean: yes
autoremove: yes
- name: "Install my favourite applications"
ansible.builtin.apt:
update_cache: yes
state: present
name:
- tmux
- htop
- dnsutils
- needrestart
- curl
- wget
- netcat-openbsd
- tree
- net-tools
- nano
- psmisc
- python3
- python3-venv
- strace
- ifstat
- tcpdump
- xxd
- git
- ncdu
- cron
...