2022-01-01 19:24:52 +01:00
|
|
|
---
|
2022-11-23 15:17:59 +01:00
|
|
|
- name: "Use custom Ubuntu mirror"
|
|
|
|
replace:
|
|
|
|
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"
|
|
|
|
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
|
|
|
|
|
2022-01-01 19:24:52 +01:00
|
|
|
- name: "Remove Ubuntu bloatware"
|
|
|
|
apt:
|
|
|
|
state: absent
|
|
|
|
name: ubutu-server
|
|
|
|
autoremove: yes
|
|
|
|
|
|
|
|
- name: "Update machine"
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
2022-02-05 21:49:58 +01:00
|
|
|
upgrade: "yes"
|
2022-01-01 19:24:52 +01:00
|
|
|
autoclean: yes
|
|
|
|
autoremove: yes
|
|
|
|
|
|
|
|
- name: "Install my favourite applications"
|
|
|
|
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
|
|
|
...
|