This project is used to setup my Ubuntu machine 💻
You have to install Ansible:
sudo apt-add-repository -y ppa:ansible/ansible && \
sudo apt-get update && \
sudo apt-get install -y ansible
Check your folder: ~/.ansible/
You must be the owner of this folder, specially if you already used sudo ansible-playbook
.
NPM is needed to format all files, when you change some files.
After installing Node, you should be able to run the following command to install development tools. You will only need to run this command when dependencies change in package.json.
npm install
Build the Docker image
docker build -t ansible:test .
Start the container with the code inside:
docker run --rm -it ansible:test bash
Start the container, with volume, so you can change the code directly:
docker run --rm -it -v "$PWD":/home/jhipster/app/ ansible:test bash
To install curl, vim, wget and gnome-tweaks :
ansible-playbook -v playbooks/tools.yml -K
To install Git :
ansible-playbook -v playbooks/git.yml -K
To install Git and configure with your information :
ansible-playbook -v playbooks/git.yml -K -e 'git_username="Firstname Lastname"' -e git_email=yourmail
To install zsh, oh-my-zsh, fonts-powerline,spaceship-prompt and zsh-autosuggestions
ansible-playbook -v playbooks/zsh.yml -K
Launch this playbook to create a .custom
file at your home, then customize it:
ansible-playbook -v playbooks/custom.yml -u $USER
To install OpenJDK 17 :
ansible-playbook -v playbooks/openjdk17.yml -K
To install OpenJDK 21 :
ansible-playbook -v playbooks/openjdk21.yml -K
To install Maven :
ansible-playbook -v playbooks/maven.yml -K
To install a specific version of Maven :
ansible-playbook -v playbooks/maven.yml -K -e maven_version=3.9.6
To install NodeJS :
ansible-playbook -v playbooks/node.yml -K
To install a specific version of NodeJS :
ansible-playbook -v playbooks/node.yml -K -e node_version=20.15.1
To install tilix :
ansible-playbook -v playbooks/tilix.yml -K
Don't forget to change default cmd to zsh
To install Docker :
ansible-playbook -v playbooks/docker.yml -K -u $USER
To install Docker Compose :
ansible-playbook -v playbooks/dockercompose.yml -K