Sometimes I need to reinstall my machine and after that there a lot of work to do.
- Install updates
- Add new repositories
- Install packages
- Configure my user groups
- ...
I'm using the regolith as my main WM, you can change this on the respective task file
As a programmer, I'm lazy, specially when I need to do repetitive things. And when I need to do these repetitive things, I tends to do the same thing with some kind of automation tool. For this specific task, I'm using ansible.
All I need todo run the commands bellow after re/install my O.S.(Ubuntu 20.04) :
sudo apt update && \
sudo apt dist-upgrade -y && \
sudo apt autoremove && \
sudo reboot
Why I reboot the O.S.?
Because this is a fresh installation and there's a high probability that exists a kernel update.
sudo apt update && \
sudo apt install software-properties-common git ansible python3-apt && \
git clone [email protected]:eltonplima/configure-my-os-with-ansible.git && \
cd configure-my-os-with-ansible && \
sudo ansible-playbook playbook.yml