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

48 lines
851 B
YAML
Raw Normal View History

---
2022-11-23 15:17:59 +01:00
- name: "Use custom Ubuntu mirror"
2023-03-05 19:00:38 +01:00
ansible.builtin.replace:
2022-11-23 15:17:59 +01:00
path: /etc/apt/sources.list
regexp: 'http://hu.archive.ubuntu.com'
2023-07-25 14:46:24 +02:00
replace: 'https://mirror.niif.hu'
2022-11-23 15:17:59 +01:00
backup: yes
- name: "Remove Ubuntu bloatware"
2023-03-05 19:00:38 +01:00
ansible.builtin.apt:
state: absent
name: ubutu-server
autoremove: yes
- name: "Update machine"
2023-03-05 19:00:38 +01:00
ansible.builtin.apt:
update_cache: yes
2022-02-05 21:49:58 +01:00
upgrade: "yes"
autoclean: yes
autoremove: yes
- name: "Install my favourite applications"
2023-03-05 19:00:38 +01:00
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
2022-11-23 15:17:59 +01:00
- ncdu
2023-03-05 22:08:45 +01:00
- cron
2022-04-16 19:55:29 +02:00
...