Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pascalgrimaud/ansible-ubuntu
Personal Ansible playbooks to setup my Ubuntu machine
https://github.com/pascalgrimaud/ansible-ubuntu
ansible ansible-playbook ubuntu
Last synced: 13 days ago
JSON representation
Personal Ansible playbooks to setup my Ubuntu machine
- Host: GitHub
- URL: https://github.com/pascalgrimaud/ansible-ubuntu
- Owner: pascalgrimaud
- License: apache-2.0
- Created: 2018-03-24T22:12:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-13T09:55:40.000Z (4 months ago)
- Last Synced: 2024-10-10T16:34:00.918Z (about 1 month ago)
- Topics: ansible, ansible-playbook, ubuntu
- Language: Shell
- Homepage:
- Size: 105 KB
- Stars: 13
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-ubuntu
[![Build Status][github-actions-image]][github-actions-url]
This project is used to setup my Ubuntu machine :computer:
## 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](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](https://github.com/robbyrussell/oh-my-zsh), fonts-powerline,[spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt) and [zsh-autosuggestions](https://github.com/zsh-users/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](https://nodejs.org/en/) :
```
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](https://github.com/gnunn1/tilix) :
```
ansible-playbook -v playbooks/tilix.yml -K
```Don't forget to change default cmd to `zsh`
### Docker
To install [Docker](https://github.com/moby/moby) :
```
ansible-playbook -v playbooks/docker.yml -K -u $USER
```### Docker Compose
To install [Docker Compose](https://github.com/docker/compose) :
```
ansible-playbook -v playbooks/dockercompose.yml -K
```[github-actions-image]: https://github.com/pascalgrimaud/ansible-ubuntu/workflows/Build/badge.svg
[github-actions-url]: https://github.com/pascalgrimaud/ansible-ubuntu/actions?query=workflow%3ABuild