Skip to content

pascalgrimaud/ansible-ubuntu

Repository files navigation

ansible-ubuntu

Build Status

This project is used to setup my Ubuntu machine 💻

Prerequisites

Ansible

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.

Node.js and NPM

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

Test with Docker

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

Roles

Tools: curl, vim, wget

To install curl, vim, wget and gnome-tweaks :

ansible-playbook -v playbooks/tools.yml -K

Git

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

zsh, oh-my-zsh, fonts-powerline, spaceship-prompt, zsh-autosuggestions

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

OpenJDK 17

To install OpenJDK 17 :

ansible-playbook -v playbooks/openjdk17.yml -K

OpenJDK 21

To install OpenJDK 21 :

ansible-playbook -v playbooks/openjdk21.yml -K

Maven

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

NodeJS

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

tilix

To install tilix :

ansible-playbook -v playbooks/tilix.yml -K

Don't forget to change default cmd to zsh

Docker

To install Docker :

ansible-playbook -v playbooks/docker.yml -K -u $USER

Docker Compose

To install Docker Compose :

ansible-playbook -v playbooks/dockercompose.yml -K

About

Personal Ansible playbooks to setup my Ubuntu machine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published