Rebuild my Ubuntu laptop using Ansible playbooks. Just for the fun of it and to learn more about Ansible. Also automate a bunch of setup steps, eg add a new git repo to my virtualenvwrapper and bind to a the project home. A Vagrant box is used to test the Ansible playbooks.
First create a vagrant box
$ vagrant up
Run defined tests on the vagrant box.
laptop$ vagrant ssh --command "cd /vagrant; ANSIBLE_INVENTORY=hosts ./test.sh"
Then test the ansible playbooks on the vagrant box
all tasks
$ vagrant ssh
vagrant$ cd /vagrant
vagrant$ ansible-playbook --inventory-file=hosts deploy.yml
one role at a time using the tags defined in deploy.yml
vagrant$ ansible-playbook --inventory-file=hosts deploy.yml --tags setup
laptop$ ansible-playbook --inventory-file=.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory deploy.yml --tags terminator
In my usual workflow I change the ansible script, for example add a new alias aliases.zsh
, and then deploy to my laptop with
laptop$ ansible-playbook --inventory-file=hosts deploy.yml --tags=alias --extra-vars 'as_root=no'
docker pull cytopia/ansible:latest
docker run --rm -v $(pwd):/data cytopia/ansible ansible-playbook --inventory-file=hosts deploy.yml
automate everything and so everything is reproducible. it can be run again and again. makes testing, load testing, building and deploying easy. also great for scaling.
tools to access, manage and deploy.
great python packages to help writing great code. use functional programming, TDD, dependency injection, database abstraction, database migration.
programming languages for high performance and system level access.
wrangle, plot, predict, test hypothesis, estimate.
write code with fully fledged IDE or lightweight editor. plugins can be used to extend the functionality.
look under the hood.
show and measure what is happening in the Linux kernel.
communicate. create and manage documents, files.
view and process photos, e-books, audio and video.
give Linux the look-and-feel I like. unfortunately haven`t figured out how to configure a "glass look"
tools for UI tweaks. did a few tweaks.
sudo apt-get install ccsm
Compiz config settings manager, Unity plugin
browse and download a theme
gnome-look.org
sudo apt-get install arc-theme
set theme in Unity Tweak Tool
Arc-dark
change desktop background
terminator