Using Ansible To Setup My New Debian Desktop Machine
February 6, 2022ansible debian devops
I recently bought a new computer and wanted to use Ansible to install all the software. I have installed the base debian system and now wanted to install everything I regularly use with Ansible.
Here is the link to the repo
Inspired by the following repos on github, I wanted to install as much as possible with Ansible, including settings for software, the XFCE panels and copy over the files I want as a backup.
I have used installed a lot of software but the core apps I wanted is as follows:
- Sublime Text
- Sublime Merge
- Google Chrome
- VS Code
- Brave Browser
- MySQL / MariaDB Ver 15.1 Distrib 10.5.12-MariaDB,
- Virtual Box
- nodejs version 14.9
a number of extra repositories for software was required and features in the roles within the repository.
To run the ansible playbook run this command and enter the ssh password and the root password like so:
ansible-playbook -i hosts workstation.yml --ask-become-pass --ask-pass SSH password: BECOME password[defaults to SSH password]:
One of the issues was that I tend to use su instead of the default sudo, and this requires
become_method: su which is set in the
I will extend this as I need to, and update the blog and the repo. Hope it is of some help. If you have any feedback, issues or suggestions, please contact me.