This playbook installs and configures most of the software I use on my Ubuntu laptop for Cloud and software development.
- Install Ansible.
- Clone this repository to your local drive.
- Run 'ansible-galaxy install -r requirements.yml' inside this directory to install required Ansible roles.
- Run 'ansible-playbook playbook.yml' inside this directory.
You can filter which part of the provisioning process to run by specifying a set of tags using ansible-playbook --tags
flag.
The tags available:
- atom
- aws-cli
- discord
- docker
- gcloud
- minikube
- openjdk
- puppet
- slack
- spotify
- tusk
- virtualbox
ansible-playbook playbook.yml --tags "atom,docker,tusk"
---
# defaults file for linux-dev-playbook
# Target users to install
# Define target users where to installs and configures software
# Default: all Linux users
user_list: []
# Install text editor Atom.
# Default is true.
atom_install: true
# Install awscli.
# Default is true.
awscli_install: true
# Install voice and text chat Discord.
# Default is true.
discord_install: true
# Install Docker.
# Default is true.
docker_install: true
# Install google sdk for cloud provider
# Default is true
gcloud_install: true
# Install Minikube for deploy local kubernetes cluster
# Default is true
minikube_install: true
# Install shell Oh-My-Zsh.
# Default is true.
ohmyzsh_install: true
# Install Spotify.
# Default is true.
spotify_install: true
# Install Tusk note.
# Default is true.
tusk_install: true
# Install Virtualbox.
# Default is true.
virtualbox_install: true
atom_packages:
- atom-beautify
- atom-jinja2
- atom-material-ui
- busy-signal
- git-plus
- highlight-selected
- intentions
- language-ansible
- language-docker
- language-chef
- language-groovy
- language-puppet
- language-terraform
- linter
- linter-ansible-linting
- linter-docker
- linter-erb
- linter-flake8
- linter-golinter
- linter-markdown
- linter-puppet-lint
- linter-pylint
- linter-ruby
- linter-shellcheck
- linter-ui-default
- markdown-preview-plus
- minimap
- Sublime-Style-Column-Selection
None
The preferred way of locally testing the role is to use Virtualbox. You will have to install Virtualbox and Vagrant on your system. See Vagrant Downloads for a vagrant package suitable for your system. For all our tests we use test-kitchen. If you are not familiar with test-kitchen please have a look at their guide.
Next install test-kitchen:
# Install dependencies
gem install bundler
bundle install
### Testing with Virtualbox
```shell
kitchen test default-ubuntu-18-04
# Build environment and apply ansible playbook
kitchen converge default-ubuntu-18-04
# Run inspec tests
kitchen verify default-ubuntu-18-04
Apache 2
This role was created in 2018 by diodonfrost.