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

57 lines
1.2 KiB
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'
replace: 'https://tormakris.jfrog.io/artifactory/ubuntu-mirror'
backup: yes
- name: "Get JFrog password from local environment variable"
ansible.builtin.set_fact:
artifactory_password: "{{ lookup('env', 'ARTIFACTORY_APT_PASSWORD') }}"
delegate_to: localhost
- name: "Render JFrog credentials configuration"
2023-03-05 19:00:38 +01:00
ansible.builtin.template:
2022-11-23 15:19:59 +01:00
src: jfrog.conf.template
2022-11-23 15:17:59 +01:00
dest: /etc/apt/auth.conf.d/jfrog.conf
- 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
2022-04-16 19:55:29 +02:00
...